Skip to content

Commit

Permalink
defaultnormal_vertex: terser code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxry committed May 5, 2017
1 parent bdd12d1 commit 68d46fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifdef FLIP_SIDED

vec3 transformedNormal = - normalMatrix * objectNormal;
vec3 transformedNormal = normalMatrix * objectNormal;

#else
#ifdef FLIP_SIDED

vec3 transformedNormal = normalMatrix * objectNormal;
transformedNormal = - transformedNormal;

#endif

Expand Down

0 comments on commit 68d46fc

Please sign in to comment.