[Bf-blender-cvs] [91b42627287] master: Fix T57489 Eevee: Texture coordinate object reference not working for world
Clément Foucault
noreply at git.blender.org
Wed Jul 10 13:46:33 CEST 2019
Commit: 91b42627287e47abe3845b56edb5532f32dcdb31
Author: Clément Foucault
Date: Wed Jul 10 13:46:23 2019 +0200
Branches: master
https://developer.blender.org/rB91b42627287e47abe3845b56edb5532f32dcdb31
Fix T57489 Eevee: Texture coordinate object reference not working for world
===================================================================
M source/blender/gpu/shaders/gpu_shader_material.glsl
===================================================================
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 1750e124c29..6149409774a 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -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);
More information about the Bf-blender-cvs
mailing list