fireball/lib/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl

8 lines
124 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
vec3 transformedNormal = normalMatrix * objectNormal;
#ifdef FLIP_SIDED
transformedNormal = - transformedNormal;
#endif