Fix T100775: Regression: EEVEE world environment is stretched when using orthographic view

It was using normalized vector instead of `viewCameraVec` which account for
orthographic views.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D15861
This commit is contained in:
Clément Foucault
2022-09-05 09:16:59 +02:00
committed by Clément Foucault
parent b0d9b6f6df
commit f0166bc168

View File

@@ -153,7 +153,7 @@ void main()
vec3 attr_load_orco(vec4 orco)
{
/* Retain precision better than g_data.P (see T99128). */
return transform_direction(ViewMatrixInverse, normalize(viewPosition));
return -normal_view_to_world(viewCameraVec(viewPosition));
}
/* Unsupported. */
vec4 attr_load_tangent(vec4 tangent)