diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-22 01:53:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-22 02:13:18 +0300 |
commit | 1ae6aaad43ad1e021b2e8d8298bb389a4271d185 (patch) | |
tree | a8473b475281cef58ea942ee902f1f167f736dee /source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | |
parent | 8b00712b55e79a550fc02e7237b8d8fdb5fc35ef (diff) |
Eevee: Cleanup
Remove unneeded normalization.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl index ef7213cd21e..141d3363a09 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl @@ -61,7 +61,7 @@ void main() worldPosition = pos; hairTangent = normalize(hairTangent); worldNormal = cross(binor, hairTangent); - viewNormal = normalize(mat3(ViewMatrix) * worldNormal); + viewNormal = mat3(ViewMatrix) * worldNormal; #else gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); viewPosition = (ModelViewMatrix * vec4(pos, 1.0)).xyz; |