Blender  V2.93
Functions | Variables
node_shader_hueSatVal.c File Reference
#include "node_shader_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, const float in[4], float fac)
 
static void node_shader_exec_hue_sat (void *UNUSED(data), int UNUSED(thread), bNode *node, bNodeExecData *UNUSED(execdata), bNodeStack **in, bNodeStack **out)
 
static int gpu_shader_hue_sat (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_hue_sat (void)
 

Variables

static bNodeSocketTemplate sh_node_hue_sat_in []
 
static bNodeSocketTemplate sh_node_hue_sat_out []
 

Function Documentation

◆ do_hue_sat_fac()

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

Definition at line 41 of file node_shader_hueSatVal.c.

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

Referenced by node_shader_exec_hue_sat().

◆ gpu_shader_hue_sat()

static int gpu_shader_hue_sat ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

Definition at line 79 of file node_shader_hueSatVal.c.

References GPU_stack_link(), and node.

Referenced by register_node_type_sh_hue_sat().

◆ node_shader_exec_hue_sat()

static void node_shader_exec_hue_sat ( void *  UNUSEDdata,
int   UNUSEDthread,
bNode node,
bNodeExecData UNUSEDexecdata,
bNodeStack **  in,
bNodeStack **  out 
)
static

◆ register_node_type_sh_hue_sat()

void register_node_type_sh_hue_sat ( void  )

Variable Documentation

◆ sh_node_hue_sat_in

bNodeSocketTemplate sh_node_hue_sat_in[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Hue"), 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 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_("Fac"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR},
{SOCK_RGBA, N_("Color"), 0.8f, 0.8f, 0.8f, 1.0f},
{-1, ""},
}
#define N_(msgid)
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition: RNA_types.h:113
@ PROP_FACTOR
Definition: RNA_types.h:131

Definition at line 27 of file node_shader_hueSatVal.c.

Referenced by register_node_type_sh_hue_sat().

◆ sh_node_hue_sat_out

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

Definition at line 35 of file node_shader_hueSatVal.c.

Referenced by register_node_type_sh_hue_sat().