Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_valToRgb.c
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | else { | ||||
| return GPU_stack_link(mat, node, "valtorgb", in, out, tex, GPU_constant(&layer)); | return GPU_stack_link(mat, node, "valtorgb", in, out, tex, GPU_constant(&layer)); | ||||
| } | } | ||||
| } | } | ||||
| void register_node_type_sh_valtorgb(void) | void register_node_type_sh_valtorgb(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTOR, 0); | sh_fn_node_type_base(&ntype, SH_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_valtorgb_in, sh_node_valtorgb_out); | node_type_socket_templates(&ntype, sh_node_valtorgb_in, sh_node_valtorgb_out); | ||||
| node_type_init(&ntype, node_shader_init_valtorgb); | node_type_init(&ntype, node_shader_init_valtorgb); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_LARGE); | node_type_size_preset(&ntype, NODE_SIZE_LARGE); | ||||
| node_type_storage(&ntype, "ColorBand", node_free_standard_storage, node_copy_standard_storage); | node_type_storage(&ntype, "ColorBand", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_valtorgb); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_valtorgb); | ||||
| node_type_gpu(&ntype, gpu_shader_valtorgb); | node_type_gpu(&ntype, gpu_shader_valtorgb); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||