Blender  V2.93
Functions | Variables
node_shader_clamp.cc File Reference
#include "node_shader_util.h"

Go to the source code of this file.

Functions

static void node_shader_init_clamp (bNodeTree *UNUSED(ntree), bNode *node)
 
static int gpu_shader_clamp (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
static void sh_node_clamp_expand_in_mf_network (blender::nodes::NodeMFNetworkBuilder &builder)
 
void register_node_type_sh_clamp (void)
 

Variables

static bNodeSocketTemplate sh_node_clamp_in []
 
static bNodeSocketTemplate sh_node_clamp_out []
 

Function Documentation

◆ gpu_shader_clamp()

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

Definition at line 43 of file node_shader_clamp.cc.

References GPU_stack_link(), node, and NODE_CLAMP_MINMAX.

Referenced by register_node_type_sh_clamp().

◆ node_shader_init_clamp()

static void node_shader_init_clamp ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 38 of file node_shader_clamp.cc.

References node, and NODE_CLAMP_MINMAX.

Referenced by register_node_type_sh_clamp().

◆ register_node_type_sh_clamp()

void register_node_type_sh_clamp ( void  )

◆ sh_node_clamp_expand_in_mf_network()

static void sh_node_clamp_expand_in_mf_network ( blender::nodes::NodeMFNetworkBuilder builder)
static

Variable Documentation

◆ sh_node_clamp_in

bNodeSocketTemplate sh_node_clamp_in[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Value"), 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, PROP_NONE},
{SOCK_FLOAT, N_("Min"), 0.0f, 1.0f, 1.0f, 1.0f, -10000.0f, 10000.0f, PROP_NONE},
{SOCK_FLOAT, N_("Max"), 1.0f, 1.0f, 1.0f, 1.0f, -10000.0f, 10000.0f, PROP_NONE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_FLOAT
@ PROP_NONE
Definition: RNA_types.h:113

Definition at line 27 of file node_shader_clamp.cc.

Referenced by register_node_type_sh_clamp().

◆ sh_node_clamp_out

bNodeSocketTemplate sh_node_clamp_out[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Result")},
{-1, ""},
}

Definition at line 33 of file node_shader_clamp.cc.

Referenced by register_node_type_sh_clamp().