diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-22 01:30:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-22 02:13:18 +0300 |
commit | cc1b193ddf3868ff508b82d42d36f7e769730323 (patch) | |
tree | 05c9d102eee0de0227203fe975f493c86c237982 /source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | |
parent | 1f1e90a013301b4283fdf9300e7e68b7fc55d894 (diff) |
Revert "Fix T62621 object scale changes tangent node output in Eevee"
This reverts commit 86646dab7c455e739e5d648d0857bf30fd81afb9.
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 | 4 |
1 files changed, 2 insertions, 2 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 5438da1c007..ef7213cd21e 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl @@ -66,8 +66,8 @@ void main() gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); viewPosition = (ModelViewMatrix * vec4(pos, 1.0)).xyz; worldPosition = (ModelMatrix * vec4(pos, 1.0)).xyz; - worldNormal = WorldNormalMatrix * nor; - viewNormal = NormalMatrix * nor; + worldNormal = normalize(WorldNormalMatrix * nor); + viewNormal = normalize(NormalMatrix * nor); #endif /* Used for planar reflections */ |