fireball/lib/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl
2018-12-25 17:29:22 +03:30

8 lines
124 B
GLSL

vec3 transformedNormal = normalMatrix * objectNormal;
#ifdef FLIP_SIDED
transformedNormal = - transformedNormal;
#endif