Blender V2.61 - r43446
Functions | Variables

node_texture_hueSatVal.c File Reference

#include "node_texture_util.h"
#include "NOD_texture.h"

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 (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate inputs []
static bNodeSocketTemplate outputs []

Detailed Description

Definition in file node_texture_hueSatVal.c.


Function Documentation

static void colorfn ( float *  out,
TexParams p,
bNode node,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 73 of file node_texture_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 50 of file node_texture_hueSatVal.c.

References copy_v4_v4(), hsv_to_rgb(), 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 90 of file node_texture_hueSatVal.c.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_hue_sat().

void register_node_type_tex_hue_sat ( bNodeTreeType ttype)

Variable Documentation

Initial value:
 {
    { SOCK_FLOAT, 1, "Hue",        0.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.5f, PROP_NONE },
    { SOCK_FLOAT, 1, "Saturation", 1.0f, 0.0f, 0.0f, 0.0f,  0.0f, 2.0f, PROP_FACTOR },
    { SOCK_FLOAT, 1, "Value",      1.0f, 0.0f, 0.0f, 0.0f,  0.0f, 2.0f, PROP_FACTOR },
    { SOCK_FLOAT, 1, "Factor",     1.0f, 0.0f, 0.0f, 0.0f,  0.0f, 1.0f, PROP_FACTOR },
    { SOCK_RGBA,  1, "Color",      0.8f, 0.8f, 0.8f, 1.0f },
    { -1, 0, "" }
}

Definition at line 37 of file node_texture_hueSatVal.c.

Initial value:
 {
    { SOCK_RGBA, 0, "Color" },
    { -1, 0, "" }
}

Definition at line 45 of file node_texture_hueSatVal.c.