Blender  V3.3
Classes | Functions
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 *UNUSED(C), 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 *UNUSED(ntree), 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 *UNUSED(execdata), 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 234 of file node_shader_map_range.cc.

References Clamp, clamp_range(), result, and blender::math::safe_divide().

◆ 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

Definition at line 282 of file node_shader_map_range.cc.

References Clamp, clamp_range(), result, and blender::math::safe_divide().

◆ 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 227 of file node_shader_map_range.cc.

References clamp_range(), max, 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()

static int blender::nodes::node_shader_map_range_cc::gpu_shader_map_range ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

◆ 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 UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_init_map_range()

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

Definition at line 97 of file node_shader_map_range.cc.

References CD_PROP_FLOAT, data, node, and NODE_MAP_RANGE_LINEAR.

Referenced by register_node_type_sh_map_range().

◆ 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()

static void blender::nodes::node_shader_map_range_cc::sh_node_map_range_build_multi_function ( NodeMultiFunctionBuilder builder)
static

◆ sh_node_map_range_declare()

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

Definition at line 23 of file node_shader_map_range.cc.

References usdtokens::b(), min, and N_.

Referenced by register_node_type_sh_map_range().