44 ntype.
ui_name =
"Shader to RGB";
46 "Convert rendering effect (such as light and shadow) to color. Typically used for "
47 "non-photorealistic rendering, to apply additional effects on the output of BSDFs.\nNote: "
48 "only supported in EEVEE";
51 ntype.
declare = file_ns::node_declare;
53 ntype.
gpu_fn = file_ns::node_shader_gpu_shadertorgb;
#define NODE_CLASS_CONVERTER
#define SH_NODE_SHADERTORGB
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_shadertorgb(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void register_node_type_sh_shadertorgb()
@ GPU_MATFLAG_SHADER_TO_RGBA
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void GPU_material_flag_set(GPUMaterial *mat, eGPUMaterialFlag flag)
bool object_eevee_shader_nodes_poll(const bContext *C)
GPUNodeLink * GPU_shading_data()
GPUNodeLink * GPU_kernel_globals()
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare
bool(*) add_ui_poll(const bContext *C)