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, applied as color^gamma.\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::Color3);
39 NodeItem gamma = get_input_value(
"Gamma", NodeItem::Type::Float);
58 ntype.
declare = file_ns::node_declare;
59 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,...)
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, std::string idname, const std::optional< int16_t > legacy_type)
NodeMaterialXFunction materialx_fn
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare