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>2018-11-06 22:50:37 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-11-07 02:19:14 +0300
commitc3a0af736a4f6db5b3310cca947bfb103fd2cde2 (patch)
treeb4fd009b59fcaa91ac31b6287a2dd7e615b74bc3 /source/blender/nodes
parent57b4e122fc9a1e8d0cb9160ab8652c654af76194 (diff)
Eevee: Make Normal node interactive
Before it was triggering shader recompilation. Include small cleanup/opti.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_normal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_normal.c b/source/blender/nodes/shader/nodes/node_shader_normal.c
index 13335c86382..121cb9cc1a5 100644
--- a/source/blender/nodes/shader/nodes/node_shader_normal.c
+++ b/source/blender/nodes/shader/nodes/node_shader_normal.c
@@ -60,7 +60,7 @@ static void node_shader_exec_normal(void *UNUSED(data), int UNUSED(thread), bNod
static int gpu_shader_normal(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
{
- GPUNodeLink *vec = GPU_constant(out[0].vec);
+ GPUNodeLink *vec = GPU_uniform(out[0].vec);
return GPU_stack_link(mat, node, "normal_new_shading", in, out, vec);
}