Blender V2.61 - r43446
|
#include "../node_shader_util.h"
Go to the source code of this file.
Functions | |
static void | node_shader_init_tex_voronoi (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp)) |
static int | node_shader_gpu_tex_voronoi (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
void | register_node_type_sh_tex_voronoi (bNodeTreeType *ttype) |
Variables | |
static bNodeSocketTemplate | sh_node_tex_voronoi_in [] |
static bNodeSocketTemplate | sh_node_tex_voronoi_out [] |
static int node_shader_gpu_tex_voronoi | ( | GPUMaterial * | mat, |
bNode * | node, | ||
GPUNodeStack * | in, | ||
GPUNodeStack * | out | ||
) | [static] |
Definition at line 54 of file node_shader_tex_voronoi.c.
References CD_ORCO, GPU_attribute(), GPU_stack_link(), link(), GPUNodeStack::link, and node_shader_gpu_tex_mapping().
Referenced by register_node_type_sh_tex_voronoi().
static void node_shader_init_tex_voronoi | ( | bNodeTree * | UNUSEDntree, |
bNode * | node, | ||
bNodeTemplate * | UNUSEDntemp | ||
) | [static] |
Definition at line 44 of file node_shader_tex_voronoi.c.
References NodeTexVoronoi::base, NodeTexBase::color_mapping, NodeTexVoronoi::coloring, default_color_mapping(), default_tex_mapping(), MEM_callocN(), SHD_VORONOI_INTENSITY, bNode::storage, and NodeTexBase::tex_mapping.
Referenced by register_node_type_sh_tex_voronoi().
void register_node_type_sh_tex_voronoi | ( | bNodeTreeType * | ttype | ) |
Definition at line 65 of file node_shader_tex_voronoi.c.
References NODE_CLASS_TEXTURE, node_copy_standard_storage(), node_free_standard_storage(), NODE_NEW_SHADING, NODE_OPTIONS, node_shader_gpu_tex_voronoi(), node_shader_init_tex_voronoi(), node_type_base(), node_type_compatibility(), node_type_exec(), node_type_gpu(), node_type_init(), node_type_size(), node_type_socket_templates(), node_type_storage(), nodeRegisterType(), NULL, and SH_NODE_TEX_VORONOI.
Referenced by registerShaderNodes().
bNodeSocketTemplate sh_node_tex_voronoi_in[] [static] |
{ { SOCK_VECTOR, 1, "Vector", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE}, { SOCK_FLOAT, 1, "Scale", 5.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, { -1, 0, "" } }
Definition at line 32 of file node_shader_tex_voronoi.c.
bNodeSocketTemplate sh_node_tex_voronoi_out[] [static] |
{ { SOCK_RGBA, 0, "Color", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_FLOAT, 0, "Fac", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, { -1, 0, "" } }
Definition at line 38 of file node_shader_tex_voronoi.c.