gl_Normal
gl_Normal
Valid Programs: gbuffers_*.vsh
, shadow.vsh
The vertex normal vector attribute.
The normal vector from gl_Normal
is approximate, and in model space (which varies for different geometry). It can be converted to view space using gl_NormalMatrix
vec3 normal = gl_NormalMatrix * normalize(gl_Normal);
in vec3 vaNormal;
Can be converted to view space using normalMatrix
vec3 normal = normalMatrix * normalize(vaNormal);