Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_volume_info.c
| Show All 34 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, | return GPU_stack_link(mat, | ||||
| node, | node, | ||||
| "node_volume_info", | "node_volume_info", | ||||
| in, | in, | ||||
| out, | out, | ||||
| GPU_builtin(GPU_VOLUME_DENSITY), | GPU_builtin(GPU_VOLUME_DENSITY), | ||||
| GPU_builtin(GPU_VOLUME_COLOR), | |||||
| GPU_builtin(GPU_VOLUME_FLAME), | GPU_builtin(GPU_VOLUME_FLAME), | ||||
| GPU_builtin(GPU_VOLUME_TEMPERATURE)); | GPU_builtin(GPU_VOLUME_TEMPERATURE)); | ||||
| } | } | ||||
| void register_node_type_sh_volume_info(void) | void register_node_type_sh_volume_info(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_VOLUME_INFO, "Volume Info", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_VOLUME_INFO, "Volume Info", NODE_CLASS_INPUT, 0); | ||||
| node_type_socket_templates(&ntype, NULL, sh_node_volume_info_out); | node_type_socket_templates(&ntype, NULL, sh_node_volume_info_out); | ||||
| node_type_gpu(&ntype, node_shader_gpu_volume_info); | node_type_gpu(&ntype, node_shader_gpu_volume_info); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||