diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-06 22:50:37 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-07 02:19:14 +0300 |
commit | c3a0af736a4f6db5b3310cca947bfb103fd2cde2 (patch) | |
tree | b4fd009b59fcaa91ac31b6287a2dd7e615b74bc3 /source/blender/nodes/shader | |
parent | 57b4e122fc9a1e8d0cb9160ab8652c654af76194 (diff) |
Eevee: Make Normal node interactive
Before it was triggering shader recompilation. Include small cleanup/opti.
Diffstat (limited to 'source/blender/nodes/shader')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_normal.c | 2 |
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); } |