Blender V2.61 - r43446
|
#include "node_texture_util.h"
#include "NOD_texture.h"
Go to the source code of this file.
Functions | |
static void | colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread) |
static void | exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out) |
void | register_node_type_tex_mix_rgb (bNodeTreeType *ttype) |
Variables | |
static bNodeSocketTemplate | inputs [] |
static bNodeSocketTemplate | outputs [] |
Definition in file node_texture_mixRgb.c.
static void colorfn | ( | float * | out, |
TexParams * | p, | ||
bNode * | node, | ||
bNodeStack ** | in, | ||
short | thread | ||
) | [static] |
Definition at line 48 of file node_texture_mixRgb.c.
References CLAMP(), copy_v4_v4(), bNode::custom1, ramp_blend(), tex_input_rgba(), and tex_input_value().
Referenced by exec().
static void exec | ( | void * | data, |
bNode * | node, | ||
bNodeStack ** | in, | ||
bNodeStack ** | out | ||
) | [static] |
Definition at line 62 of file node_texture_mixRgb.c.
References colorfn(), and tex_output().
Referenced by register_node_type_tex_mix_rgb().
void register_node_type_tex_mix_rgb | ( | bNodeTreeType * | ttype | ) |
Definition at line 67 of file node_texture_mixRgb.c.
References exec(), node_blend_label(), NODE_CLASS_OP_COLOR, NODE_OPTIONS, node_type_base(), node_type_exec(), node_type_label(), node_type_size(), node_type_socket_templates(), nodeRegisterType(), and TEX_NODE_MIX_RGB.
Referenced by registerTextureNodes().
bNodeSocketTemplate inputs[] [static] |
{ { SOCK_FLOAT, 1, "Factor", 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR }, { SOCK_RGBA, 1, "Color1", 0.5f, 0.5f, 0.5f, 1.0f }, { SOCK_RGBA , 1, "Color2", 0.5f, 0.5f, 0.5f, 1.0f }, { -1, 0, "" } }
Definition at line 37 of file node_texture_mixRgb.c.
bNodeSocketTemplate outputs[] [static] |
{ { SOCK_RGBA, 0, "Color" }, { -1, 0, "" } }
Definition at line 43 of file node_texture_mixRgb.c.