vaColor
in vec4 vaColor;
Valid Programs: gbuffers_*.vsh
, shadow.vsh
The vertex color attribute, equivalent to gl_Color
from the compatibility
profile.
The color attribute is often used to apply tints to colored blocks such as leaves, grass, water, etc. It also contains the vanilla ambient occlusion and, if enabled, the old lighting.
Enabling separateAo
will move the ambient occlusion from the rgb
components of vaColor
to the a
component, which can be applied later like this:
vec3 color = vaColor.rgb * vaColor.a;