22 .description(
"Amount of influence the node exerts on the image");
24 .default_value({0.0f, 0.0f, 0.0f, 1.0f})
25 .description(
"Color input on which inversion will be applied");
41 NodeItem fac = get_input_value(
"Fac", NodeItem::Type::Float);
42 NodeItem
color = get_input_value(
"Color", NodeItem::Type::Color3);
61 ntype.
declare = file_ns::node_declare;
62 ntype.
gpu_fn = file_ns::gpu_shader_invert;
#define NODE_CLASS_OP_COLOR
void node_register_type(bNodeType &ntype)
static int gpu_shader_invert(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_declare(NodeDeclarationBuilder &b)
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void register_node_type_sh_invert()
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
NodeMaterialXFunction materialx_fn
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare