Fix: EEVEE-Next: Tangent normal map node affected by object scale

Use the same approach as Legacy EEVEE and normalize the
normal before interpolation.
Fix #120455
This commit is contained in:
Clément Foucault
2024-04-22 16:38:02 +02:00
parent 048c7da4e9
commit 5f1faec6ff

View File

@@ -18,7 +18,7 @@ void main()
init_interface();
interp.P = drw_point_object_to_world(pos);
interp.N = drw_normal_object_to_world(nor);
interp.N = normalize(drw_normal_object_to_world(nor));
#ifdef MAT_VELOCITY
vec3 prv, nxt;
velocity_local_pos_get(pos, gl_VertexID, prv, nxt);