Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_particle_info.c
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | return GPU_stack_link(mat, | ||||
| GPU_builtin(GPU_PARTICLE_ANG_VELOCITY)); | GPU_builtin(GPU_PARTICLE_ANG_VELOCITY)); | ||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_particle_info(void) | void register_node_type_sh_particle_info(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_PARTICLE_INFO, "Particle Info", NODE_CLASS_INPUT, 0); | sh_node_type_base(&ntype, SH_NODE_PARTICLE_INFO, "Particle Info", NODE_CLASS_INPUT); | ||||
| node_type_socket_templates(&ntype, NULL, outputs); | node_type_socket_templates(&ntype, NULL, outputs); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_particle_info); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_particle_info); | ||||
| node_type_gpu(&ntype, gpu_shader_particle_info); | node_type_gpu(&ntype, gpu_shader_particle_info); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||