diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-30 13:14:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-30 13:25:20 +0300 |
commit | 10c0bba28e0ddc65594bacf6baba8371abb33dbe (patch) | |
tree | 871eeab153c8b6dbeb0b91b6728f54d0b83f0ad6 /source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | |
parent | 7e8fd563c60774e8e29de1fa48da17b0bbcde100 (diff) |
Eevee: Hair: Fix hair strip view Position.
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 9dffe1ec33b..d643ebb73dd 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl @@ -47,7 +47,7 @@ void main() pos, nor, hairTangent, hairTime, hairThickness, hairThickTime); gl_Position = ViewProjectionMatrix * vec4(pos, 1.0); - viewPosition = (ModelMatrixInverse * vec4(pos, 1.0)).xyz; + viewPosition = (ViewMatrix * vec4(pos, 1.0)).xyz; worldPosition = pos; worldNormal = nor; viewNormal = normalize(mat3(ViewMatrixInverse) * nor); |