Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_musgrave.c
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | if (!in[0].link) { | ||||
| GPU_link(mat, "generated_from_orco", in[0].link, &in[0].link); | GPU_link(mat, "generated_from_orco", in[0].link, &in[0].link); | ||||
| } | } | ||||
| node_shader_gpu_tex_mapping(mat, node, in, out); | node_shader_gpu_tex_mapping(mat, node, in, out); | ||||
| NodeTexMusgrave *tex = (NodeTexMusgrave *)node->storage; | NodeTexMusgrave *tex = (NodeTexMusgrave *)node->storage; | ||||
| float type = tex->musgrave_type; | float type = tex->musgrave_type; | ||||
| return GPU_stack_link(mat, "node_tex_musgrave", in, out, GPU_uniform(&type)); | return GPU_stack_link(mat, node, "node_tex_musgrave", in, out, GPU_uniform(&type)); | ||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_tex_musgrave(void) | void register_node_type_sh_tex_musgrave(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_TEX_MUSGRAVE, "Musgrave Texture", NODE_CLASS_TEXTURE, 0); | sh_node_type_base(&ntype, SH_NODE_TEX_MUSGRAVE, "Musgrave Texture", NODE_CLASS_TEXTURE, 0); | ||||
| Show All 9 Lines | |||||