Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_volume_scatter.c
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_volume_scatter(void) | void register_node_type_sh_volume_scatter(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_VOLUME_SCATTER, "Volume Scatter", NODE_CLASS_SHADER, 0); | sh_node_type_base(&ntype, SH_NODE_VOLUME_SCATTER, "Volume Scatter", NODE_CLASS_SHADER, 0); | ||||
| node_type_compatibility(&ntype, NODE_NEW_SHADING); | node_type_add_compatibility(&ntype, "CYCLES"); | ||||
| node_type_set_category(&ntype, "Shader"); | |||||
| node_type_socket_templates(&ntype, sh_node_volume_scatter_in, sh_node_volume_scatter_out); | node_type_socket_templates(&ntype, sh_node_volume_scatter_in, sh_node_volume_scatter_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, node_shader_gpu_volume_scatter); | node_type_gpu(&ntype, node_shader_gpu_volume_scatter); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||