diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-09 13:46:29 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-09 13:46:29 +0300 |
commit | f877022956df3b55e30c312b20f364fd2657805c (patch) | |
tree | f17b9d330750ebb16ef4f4f5a2a06a57fa331280 /source/blender/nodes | |
parent | 209c01a6ba6468f234a826d1eea38f4341f58cac (diff) |
Fix T64363 Eevee: Texture coordinates node turns material color to pink
Sorry for that :(
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_tex_coord.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_coord.c b/source/blender/nodes/shader/nodes/node_shader_tex_coord.c index eed53f5c286..0e34f2ca9b1 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tex_coord.c +++ b/source/blender/nodes/shader/nodes/node_shader_tex_coord.c @@ -42,10 +42,6 @@ static int node_shader_gpu_tex_coord(GPUMaterial *mat, { Object *ob = (Object *)node->id; - if (ob != NULL) { - invert_m4_m4(ob->imat, ob->obmat); - } - GPUNodeLink *inv_obmat = (ob != NULL) ? GPU_uniform(&ob->imat[0][0]) : GPU_builtin(GPU_INVERSE_OBJECT_MATRIX); @@ -61,7 +57,6 @@ static int node_shader_gpu_tex_coord(GPUMaterial *mat, out, GPU_builtin(GPU_VIEW_POSITION), GPU_builtin(GPU_WORLD_NORMAL), - GPU_builtin(GPU_INVERSE_VIEW_MATRIX), inv_obmat, GPU_builtin(GPU_CAMERA_TEXCO_FACTORS), orco, |