Blender  V3.3
Functions | Variables
node_texture_hueSatVal.c File Reference
#include "NOD_texture.h"
#include "node_texture_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 colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void exec (void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_hue_sat (void)
 

Variables

static bNodeSocketTemplate inputs []
 
static bNodeSocketTemplate outputs []
 

Function Documentation

◆ colorfn()

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

Definition at line 63 of file node_texture_hueSatVal.c.

References col, do_hue_sat_fac(), hue, node, usdtokens::out(), tex_input_rgba(), and tex_input_value().

Referenced by exec().

◆ do_hue_sat_fac()

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

Definition at line 24 of file node_texture_hueSatVal.c.

References col, copy_v4_v4(), hsv_to_rgb(), hue, usdtokens::out(), and rgb_to_hsv().

Referenced by colorfn().

◆ exec()

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

Definition at line 80 of file node_texture_hueSatVal.c.

References colorfn(), data, node, usdtokens::out(), and tex_output().

Referenced by register_node_type_tex_hue_sat().

◆ register_node_type_tex_hue_sat()

void register_node_type_tex_hue_sat ( void  )

Variable Documentation

◆ inputs

bNodeSocketTemplate inputs[]
static
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.h:126
#define N_(msgid)

Definition at line 11 of file node_texture_hueSatVal.c.

Referenced by register_node_type_tex_hue_sat().

◆ outputs

bNodeSocketTemplate outputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 19 of file node_texture_hueSatVal.c.

Referenced by register_node_type_tex_hue_sat().