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>2012-10-18 16:37:51 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-10-18 16:37:51 +0400
commitf7a584b841dc4fe5f15254adaa5d12a7473465ce (patch)
tree88e8c89c9f38f927e19caadc19105cd5c9dc3e61 /source/blender/nodes/shader/nodes/node_shader_bump.c
parentb3c605e13923b372b2ff18b5970818e2aaae470a (diff)
Fix #32903: bring cycles glsl up to date with latest changes.
Diffstat (limited to 'source/blender/nodes/shader/nodes/node_shader_bump.c')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_bump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_bump.c b/source/blender/nodes/shader/nodes/node_shader_bump.c
index fc612ccc65b..9fd5f495c3b 100644
--- a/source/blender/nodes/shader/nodes/node_shader_bump.c
+++ b/source/blender/nodes/shader/nodes/node_shader_bump.c
@@ -46,6 +46,10 @@ static bNodeSocketTemplate sh_node_bump_out[]= {
{ -1, 0, "" }
};
+static int gpu_shader_bump(GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out)
+{
+ return GPU_stack_link(mat, "node_bump", in, out, GPU_builtin(GPU_VIEW_NORMAL));
+}
/* node type definition */
void register_node_type_sh_bump(bNodeTreeType *ttype)
@@ -58,6 +62,7 @@ void register_node_type_sh_bump(bNodeTreeType *ttype)
node_type_size(&ntype, 150, 60, 200);
node_type_storage(&ntype, "BumpNode", node_free_standard_storage, node_copy_standard_storage);
node_type_exec(&ntype, NULL);
+ node_type_gpu(&ntype, gpu_shader_bump);
nodeRegisterType(ttype, &ntype);
}