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:
authorClément Foucault <foucault.clem@gmail.com>2017-06-29 21:22:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-06-29 21:23:06 +0300
commitcdb07ff30e860f3fe9066d21f9405dc02dd8b2ad (patch)
tree26b776d1dbfc361a400dded1779e23b67908d3a5 /source/blender/nodes
parent98c8b5a6fbdc47eb13d3d2d19457135ef54774cd (diff)
Eevee: Fix broken default coordinate (reported via IRC by Dalai Felinto).
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_tex_environment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_environment.c b/source/blender/nodes/shader/nodes/node_shader_tex_environment.c
index e090f26ab6b..2f8f95b0675 100644
--- a/source/blender/nodes/shader/nodes/node_shader_tex_environment.c
+++ b/source/blender/nodes/shader/nodes/node_shader_tex_environment.c
@@ -69,10 +69,8 @@ static int node_shader_gpu_tex_environment(GPUMaterial *mat, bNode *node, bNodeE
if (type == GPU_MATERIAL_TYPE_MESH)
in[0].link = GPU_builtin(GPU_VIEW_POSITION);
- else if (type == GPU_MATERIAL_TYPE_WORLD)
- GPU_link(mat, "background_transform_to_world", GPU_builtin(GPU_VIEW_POSITION), &in[0].link);
else
- GPU_link(mat, "environment_default_vector", &in[0].link);
+ GPU_link(mat, "background_transform_to_world", GPU_builtin(GPU_VIEW_POSITION), &in[0].link);
}
node_shader_gpu_tex_mapping(mat, node, in, out);