|
Blender
V2.59
|
Go to the source code of this file.
Functions | |
| static void | do_hue_sat_fac (bNode *UNUSED(node), float *out, float hue, float sat, float val, float *in, float fac) |
| 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_hue_sat (ListBase *lb) |
Variables | |
| static bNodeSocketType | inputs [] |
| static bNodeSocketType | outputs [] |
Definition in file TEX_hueSatVal.c.
| static void colorfn | ( | float * | out, |
| TexParams * | p, | ||
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| short | thread | ||
| ) | [static] |
Definition at line 74 of file TEX_hueSatVal.c.
References do_hue_sat_fac(), tex_input_rgba(), tex_input_value(), and simple_enum_gen::val.
Referenced by exec().
| static void do_hue_sat_fac | ( | bNode * | UNUSEDnode, |
| float * | out, | ||
| float | hue, | ||
| float | sat, | ||
| float | val, | ||
| float * | in, | ||
| float | fac | ||
| ) | [static] |
Definition at line 51 of file TEX_hueSatVal.c.
References hsv_to_rgb(), QUATCOPY, rgb_to_hsv(), and simple_enum_gen::val.
Referenced by colorfn().
| static void exec | ( | void * | data, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 91 of file TEX_hueSatVal.c.
References colorfn(), and tex_output().
Referenced by register_node_type_tex_hue_sat().
| void register_node_type_tex_hue_sat | ( | ListBase * | lb | ) |
Definition at line 96 of file TEX_hueSatVal.c.
References exec(), NODE_CLASS_OP_COLOR, NODE_OPTIONS, node_type_base(), node_type_exec(), node_type_size(), nodeRegisterType(), and TEX_NODE_HUE_SAT.
Referenced by registerTextureNodes().
bNodeSocketType inputs[] [static] |
{
{ SOCK_VALUE, 1, "Hue", 0.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.5f },
{ SOCK_VALUE, 1, "Saturation", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.0f },
{ SOCK_VALUE, 1, "Value", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.0f },
{ SOCK_VALUE, 1, "Factor", 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f },
{ SOCK_RGBA, 1, "Color", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f },
{ -1, 0, "" }
}
Definition at line 38 of file TEX_hueSatVal.c.
bNodeSocketType outputs[] [static] |
{
{ SOCK_RGBA, 0, "Color", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f },
{ -1, 0, "" }
}
Definition at line 46 of file TEX_hueSatVal.c.