32 .compositor_domain_priority(1);
33 b.add_output<
decl::Color>(
"Image").compositor_domain_priority(0);
60 mul_bias[0] = 1.0f / (color_band->
data[1].
pos - color_band->
data[0].
pos);
61 mul_bias[1] = -mul_bias[0] * color_band->
data[0].
pos;
64 "valtorgb_opti_linear",
75 "valtorgb_opti_constant",
83 mul_bias[0] = 1.0f / (color_band->
data[1].
pos - color_band->
data[0].
pos);
84 mul_bias[1] = -mul_bias[0] * color_band->
data[0].
pos;
138 ntype.
declare = file_ns::cmp_node_valtorgb_declare;
140 ntype.
initfunc = file_ns::node_composit_init_valtorgb;
155 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
156 .compositor_domain_priority(0);
171 float luminance_coefficients[3];
176 "color_to_luminance",
197 ntype.
declare = file_ns::cmp_node_rgbtobw_declare;
void BKE_colorband_evaluate_table_rgba(const ColorBand *coba, float **array, int *size)
ColorBand * BKE_colorband_add(bool rangetype)
#define NODE_CLASS_CONVERTER
#define BLI_assert_unreachable()
MINLINE float max_ff(float a, float b)
@ COLBAND_INTERP_CONSTANT
@ COLBAND_INTERP_B_SPLINE
@ COLBAND_INTERP_CARDINAL
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
GPUNodeLink * GPU_constant(const float *num)
GPUNodeLink * GPU_color_band(GPUMaterial *mat, int size, float *pixels, float *r_row)
GPUNodeLink * GPU_uniform(const float *num)
BLI_INLINE void IMB_colormanagement_get_luminance_coefficients(float r_rgb[3])
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
ColorBand * get_color_band()
void compile(GPUMaterial *material) override
void compile(GPUMaterial *material) override
GPUNodeStack * get_inputs_array()
GPUNodeStack * get_outputs_array()
const bNode & bnode() const
local_group_size(16, 16) .push_constant(Type b
void node_type_size_preset(bNodeType *ntype, eNodeSizePreset size)
void node_type_size(bNodeType *ntype, int width, int minwidth, int maxwidth)
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)
static void cmp_node_valtorgb_declare(NodeDeclarationBuilder &b)
static void node_composit_init_valtorgb(bNodeTree *, bNode *node)
static ShaderNode * get_compositor_shader_node(DNode node)
static void cmp_node_rgbtobw_declare(NodeDeclarationBuilder &b)
static ShaderNode * get_compositor_shader_node(DNode node)
void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_cmp_valtorgb()
void register_node_type_cmp_rgbtobw()
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeDeclareFunction declare
NodeGetCompositorShaderNodeFunction get_compositor_shader_node