Blender V4.3
node_texture_hueSatVal.cc File Reference
#include "BLI_math_color.h"
#include "BLI_math_vector.h"
#include "node_texture_util.hh"

Go to the source code of this file.

Functions

static void do_hue_sat_fac (bNode *, 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, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_hue_sat ()
 

Variables

static blender::bke::bNodeSocketTemplate inputs []
 
static blender::bke::bNodeSocketTemplate outputs []
 

Function Documentation

◆ colorfn()

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

Definition at line 65 of file node_texture_hueSatVal.cc.

References col, do_hue_sat_fac(), tex_input_rgba(), and tex_input_value().

Referenced by exec().

◆ do_hue_sat_fac()

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

Definition at line 26 of file node_texture_hueSatVal.cc.

References col, copy_v4_v4(), hsv_to_rgb(), and rgb_to_hsv().

Referenced by colorfn().

◆ exec()

static void exec ( void * data,
int ,
bNode * node,
bNodeExecData * execdata,
bNodeStack ** in,
bNodeStack ** out )
static

Definition at line 82 of file node_texture_hueSatVal.cc.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_hue_sat().

◆ register_node_type_tex_hue_sat()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_FLOAT, N_("Hue"), 0.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.5f, PROP_NONE},
{SOCK_FLOAT, N_("Saturation"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.0f, PROP_NONE},
{SOCK_FLOAT, N_("Value"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 2.0f, PROP_NONE},
{SOCK_FLOAT, N_("Factor"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE},
{SOCK_RGBA, N_("Color"), 0.8f, 0.8f, 0.8f, 1.0f},
{-1, ""},
}
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition RNA_types.hh:136
#define N_(msgid)

Definition at line 13 of file node_texture_hueSatVal.cc.

◆ outputs

Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 21 of file node_texture_hueSatVal.cc.