Eevee: Cleanup

Remove unneeded normalization.
This commit is contained in:
Clément Foucault 2019-03-21 23:53:33 +01:00
parent 8b00712b55
commit 1ae6aaad43
Notes: blender-bot 2023-02-14 10:11:54 +01:00
Referenced by issue #63468, Volumetrics broken in current compiled version
Referenced by issue #63377, "Principled Volume" node not working anymore in EEVEE.
Referenced by issue #62942, Blender crashes when trying to change the path of alambic file
Referenced by issue #62872, Grease pencil extrude generates broken vertex weights
Referenced by issue #62839, object scale changes normal map output in eevee
Referenced by issue #62837, Cannot access particles through Python API
Referenced by issue #61413, Grease Pencil crashes in 32-Bit version
1 changed files with 1 additions and 1 deletions

View File

@ -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;