12 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
13 .description(
"Color input on which correction will be applied");
20 "Gamma correction value\n"
21 "Gamma controls the relative intensity of the mid-tones compared to the full black and "
38 NodeItem color = get_input_value(
"Color", NodeItem::Type::Color4);
39 NodeItem gamma = get_input_value(
"Gamma", NodeItem::Type::Float);
54 ntype.
declare = file_ns::node_declare;
55 ntype.
gpu_fn = file_ns::node_shader_gpu_gamma;
#define NODE_CLASS_OP_COLOR
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static int node_shader_gpu_gamma(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_declare(NodeDeclarationBuilder &b)
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
void register_node_type_sh_gamma()
void sh_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
NodeMaterialXFunction materialx_fn
NodeGPUExecFunction gpu_fn
NodeDeclareFunction declare