Blender V2.61 - r43446
|
#include "../node_shader_util.h"
Go to the source code of this file.
Functions | |
static void | node_shader_init_tex_noise (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp)) |
static int | node_shader_gpu_tex_noise (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
void | register_node_type_sh_tex_noise (bNodeTreeType *ttype) |
Variables | |
static bNodeSocketTemplate | sh_node_tex_noise_in [] |
static bNodeSocketTemplate | sh_node_tex_noise_out [] |
static int node_shader_gpu_tex_noise | ( | GPUMaterial * | mat, |
bNode * | node, | ||
GPUNodeStack * | in, | ||
GPUNodeStack * | out | ||
) | [static] |
Definition at line 55 of file node_shader_tex_noise.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_noise().
static void node_shader_init_tex_noise | ( | bNodeTree * | UNUSEDntree, |
bNode * | node, | ||
bNodeTemplate * | UNUSEDntemp | ||
) | [static] |
Definition at line 46 of file node_shader_tex_noise.c.
References NodeTexNoise::base, NodeTexBase::color_mapping, default_color_mapping(), default_tex_mapping(), MEM_callocN(), bNode::storage, and NodeTexBase::tex_mapping.
Referenced by register_node_type_sh_tex_noise().
void register_node_type_sh_tex_noise | ( | bNodeTreeType * | ttype | ) |
Definition at line 66 of file node_shader_tex_noise.c.
References NODE_CLASS_TEXTURE, node_copy_standard_storage(), node_free_standard_storage(), NODE_NEW_SHADING, node_shader_gpu_tex_noise(), node_shader_init_tex_noise(), 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_NOISE.
Referenced by registerShaderNodes().
bNodeSocketTemplate sh_node_tex_noise_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}, { SOCK_FLOAT, 1, "Detail", 2.0f, 0.0f, 0.0f, 0.0f, 0.0f, 16.0f}, { SOCK_FLOAT, 1, "Distortion", 0.0f, 0.0f, 0.0f, 0.0f, -1000.0f, 1000.0f}, { -1, 0, "" } }
Definition at line 32 of file node_shader_tex_noise.c.
bNodeSocketTemplate sh_node_tex_noise_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 40 of file node_shader_tex_noise.c.