Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.c
| Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, | sh_node_type_base(&ntype, | ||||
| SH_NODE_TEX_POINTDENSITY, | SH_NODE_TEX_POINTDENSITY, | ||||
| "Point Density", | "Point Density", | ||||
| NODE_CLASS_TEXTURE, | NODE_CLASS_TEXTURE, | ||||
| 0); | 0); | ||||
| node_type_compatibility(&ntype, NODE_NEW_SHADING); | node_type_add_compatibility(&ntype, "CYCLES"); | ||||
| node_type_set_category(&ntype, "Texture"); | |||||
| node_type_socket_templates(&ntype, | node_type_socket_templates(&ntype, | ||||
| sh_node_tex_pointdensity_in, | sh_node_tex_pointdensity_in, | ||||
| sh_node_tex_pointdensity_out); | sh_node_tex_pointdensity_out); | ||||
| node_type_init(&ntype, node_shader_init_tex_pointdensity); | node_type_init(&ntype, node_shader_init_tex_pointdensity); | ||||
| node_type_storage(&ntype, | node_type_storage(&ntype, | ||||
| "NodeShaderTexPointDensity", | "NodeShaderTexPointDensity", | ||||
| node_shader_free_tex_pointdensity, | node_shader_free_tex_pointdensity, | ||||
| node_shader_copy_tex_pointdensity); | node_shader_copy_tex_pointdensity); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||