Blender  V2.59
Functions | Variables
SHD_hueSatVal.c File Reference
#include "../SHD_util.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 node_shader_exec_hue_sat (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out)
static int gpu_shader_hue_sat (GPUMaterial *mat, bNode *UNUSED(node), GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_hue_sat (ListBase *lb)

Variables

static bNodeSocketType sh_node_hue_sat_in []
static bNodeSocketType sh_node_hue_sat_out []

Detailed Description

Definition in file SHD_hueSatVal.c.


Function Documentation

static void do_hue_sat_fac ( bNode UNUSEDnode,
float *  out,
float *  hue,
float *  sat,
float *  val,
float *  in,
float *  fac 
) [static]

Definition at line 53 of file SHD_hueSatVal.c.

References hsv_to_rgb(), QUATCOPY, rgb_to_hsv(), and simple_enum_gen::val.

Referenced by node_shader_exec_hue_sat().

static int gpu_shader_hue_sat ( GPUMaterial mat,
bNode UNUSEDnode,
GPUNodeStack in,
GPUNodeStack out 
) [static]

Definition at line 80 of file SHD_hueSatVal.c.

References GPU_stack_link().

Referenced by register_node_type_sh_hue_sat().

static void node_shader_exec_hue_sat ( void *  UNUSEDdata,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 74 of file SHD_hueSatVal.c.

References do_hue_sat_fac().

Referenced by register_node_type_sh_hue_sat().

void register_node_type_sh_hue_sat ( ListBase lb)

Variable Documentation

Initial value:
 {
        {       SOCK_VALUE, 1, "Hue",                   0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       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, "Fac",                   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 39 of file SHD_hueSatVal.c.

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

Definition at line 47 of file SHD_hueSatVal.c.