Skip to content

Commit

Permalink
WebGLDeferredRenderer: Fixed breakage due to normals defaultnormal_ve…
Browse files Browse the repository at this point in the history
…rtex.glsl changes. See #11271.
  • Loading branch information
mrdoob committed Jun 20, 2017
1 parent f1bbf94 commit b461683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/js/renderers/WebGLDeferredRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ THREE.ShaderDeferred = {
THREE.ShaderChunk[ "skinning_vertex" ],
THREE.ShaderChunk[ "project_vertex" ],

" vNormal = normalize( normalMatrix * objectNormal );",
" vNormal = normalize( transformedNormal );",
" vPosition = gl_Position;",

"}"
Expand Down Expand Up @@ -2131,7 +2131,7 @@ THREE.ShaderDeferred = {
THREE.ShaderChunk[ "skinning_vertex" ],
THREE.ShaderChunk[ "project_vertex" ],

" vNormal = normalize( normalMatrix * objectNormal );",
" vNormal = normalize( transformedNormal );",
" vPosition = gl_Position;",

"}"
Expand Down

0 comments on commit b461683

Please sign in to comment.