62 {
SOCK_RGBA,
N_(
"Color"), 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
66 {
SOCK_FLOAT,
N_(
"Val"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
struct ColorBand * BKE_colorband_add(bool rangetype)
bool BKE_colorband_evaluate(const struct ColorBand *coba, float in, float out[4])
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
#define NODE_CLASS_CONVERTER
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
void node_type_size_preset(struct bNodeType *ntype, eNodeSizePreset size)
void node_type_storage(struct bNodeType *ntype, const char *storagename, void(*freefunc)(struct bNode *node), void(*copyfunc)(struct bNodeTree *dest_ntree, struct bNode *dest_node, const struct bNode *src_node))
void node_type_exec(struct bNodeType *ntype, NodeInitExecFunction init_exec_fn, NodeFreeExecFunction free_exec_fn, NodeExecFunction exec_fn)
void nodeRegisterType(struct bNodeType *ntype)
#define TEX_NODE_VALTORGB
BLI_INLINE float IMB_colormanagement_get_luminance(const float rgb[3])
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
void tex_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
void tex_output(bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
static bNodeSocketTemplate valtorgb_in[]
static void rgbtobw_valuefn(float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static bNodeSocketTemplate rgbtobw_out[]
static void valtorgb_init(bNodeTree *UNUSED(ntree), bNode *node)
static bNodeSocketTemplate valtorgb_out[]
void register_node_type_tex_rgbtobw(void)
static void valtorgb_colorfn(float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
void register_node_type_tex_valtorgb(void)
static void rgbtobw_exec(void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
static bNodeSocketTemplate rgbtobw_in[]
static void valtorgb_exec(void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
void node_copy_standard_storage(bNodeTree *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
Compact definition of a node socket.