Fix T57489 Eevee: Texture coordinate object reference not working for world

This commit is contained in:
Clément Foucault 2019-07-10 13:46:23 +02:00
parent 956d38488a
commit 91b4262728
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #57489, Texture coordinate object reference not interactively updating in Eevee
1 changed files with 1 additions and 1 deletions

View File

@ -2224,7 +2224,7 @@ void node_tex_coord_background(vec3 I,
generated = coords;
normal = -coords;
uv = vec3(attr_uv.xy, 0.0);
object = coords;
object = (obmatinv * vec4(coords, 1.0)).xyz;
camera = vec3(co.xy, -co.z);
window = vec3(mtex_2d_mapping(I).xy * camerafac.xy + camerafac.zw, 0.0);