Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_brightness.c
| Show All 40 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "brightness_contrast", in, out); | return GPU_stack_link(mat, node, "brightness_contrast", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_brightcontrast(void) | void register_node_type_sh_brightcontrast(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_BRIGHTCONTRAST, "Bright/Contrast", NODE_CLASS_OP_COLOR, 0); | sh_node_type_base(&ntype, SH_NODE_BRIGHTCONTRAST, "Bright/Contrast", NODE_CLASS_OP_COLOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_brightcontrast_in, sh_node_brightcontrast_out); | node_type_socket_templates(&ntype, sh_node_brightcontrast_in, sh_node_brightcontrast_out); | ||||
| node_type_init(&ntype, NULL); | node_type_init(&ntype, NULL); | ||||
| node_type_storage(&ntype, "", NULL, NULL); | node_type_storage(&ntype, "", NULL, NULL); | ||||
| node_type_gpu(&ntype, gpu_shader_brightcontrast); | node_type_gpu(&ntype, gpu_shader_brightcontrast); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||