21 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
22 .description(
"Color of the emitted light");
29 b.add_input<
decl::Float>(
"Weight"_ustr).available(is_gpu_internal);
55 "Add background light emission.\nNote: This node should only be used for the world surface "
59 ntype.
declare = file_ns::node_declare;
61 ntype.
gpu_fn = file_ns::node_shader_gpu_background;
#define NODE_CLASS_SHADER
#define SH_NODE_BACKGROUND
#define BLT_I18NCONTEXT_AMOUNT
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)
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)
bool world_shader_nodes_poll(const bContext *C)
GPUNodeLink * GPU_shading_data()
@ NTREE_IS_GPU_SHADER_INTERNAL
GPUNodeLink * GPU_kernel_globals()
void register_node_type_sh_background()
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare
bool(*) add_ui_poll(const bContext *C)