20 .description(
"Amount of influence the node exerts on the image");
22 .default_value({0.0f, 0.0f, 0.0f, 1.0f})
23 .description(
"Color input on which inversion will be applied");
39 NodeItem fac = get_input_value(
"Fac", NodeItem::Type::Float);
40 NodeItem
color = get_input_value(
"Color", NodeItem::Type::Color3);
59 ntype.
declare = file_ns::node_declare;
60 ntype.
gpu_fn = file_ns::gpu_shader_invert;
#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 gpu_shader_invert(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_invert()
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