Material Expression Output: RGB or RGBA?

So it is as follows?

  • rgb
  • r
  • g
  • b
  • rgba

I was quite sure about the fifth being Alpha, glad I asked… :smiley:

Thank you!

And if I wanted to emulate the same element in my material without a parameter, it would basically look like this?

Or, to be a bit too precise more like this, since there is no single alpha output?

What kind of output is the first node?

340511-rgborrgba.jpg

I know that the others are the respectively r, g, b and a, but what is the first/white node? I always assumed RGBA…

For texture samples/vector4:

the first output is always RGB.
the bottom one is RGBA.

A regular vec4 outputs RGBA, so if you want to grab an RGB out, and an Alpha out you’d need to set one component mask to RGB and the other to A.

I am still not sure about the bottom one, to be honest. When I tried to understand it a bit more and tested it, the bottom output of the parameter always returned something totally unrelated to the RGB values.