Eevee: Normalize Tangents after transform to world space

Fix T62621 without breaking everything else.
This commit is contained in:
Clément Foucault 2019-03-21 23:52:44 +01:00
parent cc1b193ddf
commit 27109fd209
Notes: blender-bot 2023-02-14 09:24:53 +01:00
Referenced by issue #62839, object scale changes normal map output in eevee
Referenced by issue #62621, object scale changes tangent node output in Eevee
1 changed files with 1 additions and 1 deletions

View File

@ -1776,7 +1776,7 @@ void tangent_orco_z(vec3 orco_in, out vec3 orco_out)
void node_tangentmap(vec4 attr_tangent, mat4 toworld, out vec3 tangent)
{
tangent = (toworld * vec4(attr_tangent.xyz, 0.0)).xyz;
tangent = normalize((toworld * vec4(attr_tangent.xyz, 0.0)).xyz);
}
void node_tangent(vec3 N, vec3 orco, mat4 objmat, mat4 toworld, out vec3 T)