15 b.add_output<
decl::Color>(
"Color").default_value({0.5f, 0.5f, 0.5f, 1.0f});
32 NodeItem color = get_output_default(
"Color", NodeItem::Type::Color4);
33 return create_node(
"constant", NodeItem::Type::Color4, {{
"value", color}});
47 ntype.
declare = file_ns::node_declare;
48 ntype.
gpu_fn = file_ns::gpu_shader_rgb;
bool GPU_link(GPUMaterial *mat, const char *name,...)
GPUNodeLink * GPU_uniform(const float *num)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int gpu_shader_rgb(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *, GPUNodeStack *out)
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
void register_node_type_sh_rgb()
void sh_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
NodeMaterialXFunction materialx_fn
NodeGPUExecFunction gpu_fn
NodeDeclareFunction declare