60 "Clamp (Range)", [](
float value,
float a,
float b) {
void node_type_gpu(struct bNodeType *ntype, NodeGPUExecFunction gpu_fn)
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
#define NODE_CLASS_CONVERTOR
void nodeRegisterType(struct bNodeType *ntype)
MINLINE float clamp_f(float value, float min, float max)
bool GPU_stack_link(GPUMaterial *mat, struct bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
Group RGB to Bright Vector Camera SH_NODE_CLAMP
void set_matching_fn(const fn::MultiFunction &function)
static void sh_node_clamp_expand_in_mf_network(blender::nodes::NodeMFNetworkBuilder &builder)
static void node_shader_init_clamp(bNodeTree *UNUSED(ntree), bNode *node)
void register_node_type_sh_clamp(void)
static bNodeSocketTemplate sh_node_clamp_in[]
static bNodeSocketTemplate sh_node_clamp_out[]
static int gpu_shader_clamp(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
void sh_fn_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag)
Compact definition of a node socket.
NodeExpandInMFNetworkFunction expand_in_mf_network