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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-04 19:49:34 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-04 19:49:34 +0400
commit9fca5f47bc1062a728f3865ba815c62bf8e81cba (patch)
tree2202afda622e8ad8d4c7049350fef579200c5608 /source/blender/gpu
parent5d18bef7622a202cf741bb907f62d857cad63576 (diff)
Fix #35617: cycles GLSL object texture coordinates were wrong.
Diffstat (limited to 'source/blender/gpu')
-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 38a8d92a56a..145ad187823 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2143,7 +2143,7 @@ void node_tex_coord(vec3 I, vec3 N, mat4 viewinvmat, mat4 obinvmat,
generated = attr_orco;
normal = normalize((obinvmat*(viewinvmat*vec4(N, 0.0))).xyz);
uv = attr_uv;
- object = I;
+ object = (obinvmat*(viewinvmat*vec4(I, 1.0))).xyz;
camera = I;
window = gl_FragCoord.xyz;
reflection = reflect(N, I);