Blender  V3.3
Functions | Variables
node_texture_curves.c File Reference
#include "NOD_texture.h"
#include "node_texture_util.h"

Go to the source code of this file.

Functions

static void time_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **UNUSED(in), short UNUSED(thread))
 
static void time_exec (void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
static void time_init (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_tex_curve_time (void)
 
static void rgb_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void rgb_exec (void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
static void rgb_init (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_tex_curve_rgb (void)
 

Variables

static bNodeSocketTemplate time_outputs [] = {{SOCK_FLOAT, N_("Value")}, {-1, ""}}
 
static bNodeSocketTemplate rgb_inputs []
 
static bNodeSocketTemplate rgb_outputs []
 

Function Documentation

◆ register_node_type_tex_curve_rgb()

void register_node_type_tex_curve_rgb ( void  )

◆ register_node_type_tex_curve_time()

void register_node_type_tex_curve_time ( void  )

◆ rgb_colorfn()

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

Definition at line 73 of file node_texture_curves.c.

References BKE_curvemapping_evaluateRGBF(), node, usdtokens::out(), and tex_input_rgba().

Referenced by rgb_exec().

◆ rgb_exec()

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

Definition at line 82 of file node_texture_curves.c.

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

Referenced by register_node_type_tex_curve_rgb().

◆ rgb_init()

static void rgb_init ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 92 of file node_texture_curves.c.

References BKE_curvemapping_add(), and node.

Referenced by register_node_type_tex_curve_rgb().

◆ time_colorfn()

static void time_colorfn ( float out,
TexParams p,
bNode node,
bNodeStack **  UNUSEDin,
short   UNUSEDthread 
)
static

◆ time_exec()

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

Definition at line 31 of file node_texture_curves.c.

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

Referenced by register_node_type_tex_curve_time().

◆ time_init()

static void time_init ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 41 of file node_texture_curves.c.

References BKE_curvemapping_add(), and node.

Referenced by register_node_type_tex_curve_time().

Variable Documentation

◆ rgb_inputs

bNodeSocketTemplate rgb_inputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f},
{-1, ""},
}
@ SOCK_RGBA
#define N_(msgid)

Definition at line 63 of file node_texture_curves.c.

Referenced by register_node_type_tex_curve_rgb().

◆ rgb_outputs

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

Definition at line 68 of file node_texture_curves.c.

Referenced by register_node_type_tex_curve_rgb().

◆ time_outputs

bNodeSocketTemplate time_outputs[] = {{SOCK_FLOAT, N_("Value")}, {-1, ""}}
static

Definition at line 14 of file node_texture_curves.c.

Referenced by register_node_type_tex_curve_time().