vaUV2
in ivec2 vaUV2;
Valid Programs: all gbuffers/shadow
The light value attribute, equivalent to gl_MultiTexCoord1
or gl_MultiTexCoord2
from the compatibility profile.
vaUV2
stores the block light level in the x component, and the sky light level in the y component. However, the exact range of values stored is indeterminate (though it is current 0-240). Therefore it is recommended to use the following matrix (or gl_TextureMatrix[1]
in the compatibility profile).
const mat4 TEXTURE_MATRIX_2 = mat4(vec4(0.00390625, 0.0, 0.0, 0.0), vec4(0.0, 0.00390625, 0.0, 0.0), vec4(0.0, 0.0, 0.00390625, 0.0), vec4(0.03125, 0.03125, 0.03125, 1.0));