Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl2
1 files changed, 1 insertions, 1 deletions
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);