Blender V4.3
blender::nodes::node_shader_map_range_cc Namespace Reference

Classes

class  SocketSearchOp
 

Functions

static void sh_node_map_range_declare (NodeDeclarationBuilder &b)
 
static void node_shader_buts_map_range (uiLayout *layout, bContext *, PointerRNA *ptr)
 
static int node_shader_map_range_ui_class (const bNode *node)
 
static void node_shader_update_map_range (bNodeTree *ntree, bNode *node)
 
static void node_shader_init_map_range (bNodeTree *, bNode *node)
 
static std::optional< eCustomDataTypenode_type_from_other_socket (const bNodeSocket &socket)
 
static void node_map_range_gather_link_searches (GatherLinkSearchOpParams &params)
 
static const char * gpu_shader_get_name (int mode, bool use_vector)
 
static int gpu_shader_map_range (GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
 
static float clamp_range (const float value, const float min, const float max)
 
static float3 clamp_range (const float3 value, const float3 min, const float3 max)
 
template<bool Clamp>
static auto build_float_linear ()
 
template<bool Clamp>
static auto build_float_stepped ()
 
template<bool Clamp>
static auto build_vector_linear ()
 
template<bool Clamp>
static auto build_vector_stepped ()
 
static void sh_node_map_range_build_multi_function (NodeMultiFunctionBuilder &builder)
 

Function Documentation

◆ build_float_linear()

template<bool Clamp>
static auto blender::nodes::node_shader_map_range_cc::build_float_linear ( )
static

Definition at line 245 of file node_shader_map_range.cc.

References Clamp, clamp_range(), result, and safe_divide().

Referenced by sh_node_map_range_build_multi_function().

◆ build_float_stepped()

template<bool Clamp>
static auto blender::nodes::node_shader_map_range_cc::build_float_stepped ( )
static

◆ build_vector_linear()

template<bool Clamp>
static auto blender::nodes::node_shader_map_range_cc::build_vector_linear ( )
static

◆ build_vector_stepped()

template<bool Clamp>
static auto blender::nodes::node_shader_map_range_cc::build_vector_stepped ( )
static

◆ clamp_range() [1/2]

static float blender::nodes::node_shader_map_range_cc::clamp_range ( const float value,
const float min,
const float max )
inlinestatic

◆ clamp_range() [2/2]

static float3 blender::nodes::node_shader_map_range_cc::clamp_range ( const float3 value,
const float3 min,
const float3 max )
static

Definition at line 238 of file node_shader_map_range.cc.

References clamp_range(), and min.

◆ gpu_shader_get_name()

static const char * blender::nodes::node_shader_map_range_cc::gpu_shader_get_name ( int mode,
bool use_vector )
static

◆ gpu_shader_map_range()

◆ node_map_range_gather_link_searches()

static void blender::nodes::node_shader_map_range_cc::node_map_range_gather_link_searches ( GatherLinkSearchOpParams & params)
static

◆ node_shader_buts_map_range()

static void blender::nodes::node_shader_map_range_cc::node_shader_buts_map_range ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

◆ node_shader_init_map_range()

static void blender::nodes::node_shader_map_range_cc::node_shader_init_map_range ( bNodeTree * ,
bNode * node )
static

Definition at line 107 of file node_shader_map_range.cc.

References CD_PROP_FLOAT, data, and NODE_MAP_RANGE_LINEAR.

◆ node_shader_map_range_ui_class()

static int blender::nodes::node_shader_map_range_cc::node_shader_map_range_ui_class ( const bNode * node)
static

◆ node_shader_update_map_range()

static void blender::nodes::node_shader_map_range_cc::node_shader_update_map_range ( bNodeTree * ntree,
bNode * node )
static

◆ node_type_from_other_socket()

static std::optional< eCustomDataType > blender::nodes::node_shader_map_range_cc::node_type_from_other_socket ( const bNodeSocket & socket)
static

◆ sh_node_map_range_build_multi_function()

◆ sh_node_map_range_declare()

static void blender::nodes::node_shader_map_range_cc::sh_node_map_range_declare ( NodeDeclarationBuilder & b)
static