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