12 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
13 .description(
"Color of the emitted light");
45 "Add background light emission.\nNote: This node should only be used for the world surface "
49 ntype.
declare = file_ns::node_declare;
51 ntype.
gpu_fn = file_ns::node_shader_gpu_background;
#define NODE_CLASS_SHADER
#define SH_NODE_BACKGROUND
#define BLT_I18NCONTEXT_AMOUNT
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_background(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_background()
void sh_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
bool world_shader_nodes_poll(const bContext *C)
std::string ui_description
bool(* add_ui_poll)(const bContext *C)
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare