Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_output_aov.c
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | static int node_shader_gpu_output_aov(GPUMaterial *mat, | ||||
| return true; | return true; | ||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_output_aov(void) | void register_node_type_sh_output_aov(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_OUTPUT_AOV, "AOV Output", NODE_CLASS_OUTPUT, 0); | sh_node_type_base(&ntype, SH_NODE_OUTPUT_AOV, "AOV Output", NODE_CLASS_OUTPUT); | ||||
| node_type_socket_templates(&ntype, sh_node_output_aov_in, NULL); | node_type_socket_templates(&ntype, sh_node_output_aov_in, NULL); | ||||
| node_type_init(&ntype, node_shader_init_output_aov); | node_type_init(&ntype, node_shader_init_output_aov); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeShaderOutputAOV", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeShaderOutputAOV", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_gpu(&ntype, node_shader_gpu_output_aov); | node_type_gpu(&ntype, node_shader_gpu_output_aov); | ||||
| ntype.no_muting = true; | ntype.no_muting = true; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||