Eevee: Normalize Tangents after transform to world space
Fix T62621 without breaking everything else.
This commit is contained in:
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
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue