17 b.use_custom_socket_order();
18 b.allow_any_socket_order();
23 b.add_input<
decl::Int>(
"LightIndex"_ustr).available(is_gpu_internal);
25 b.add_output<
decl::Color>(
"Color"_ustr).description(
"Light color");
26 b.add_output<
decl::Float>(
"Power"_ustr).description(
"Radiant intensity divided by PI");
27 b.add_output<
decl::Vector>(
"Position"_ustr).description(
"Light position");
57 "Exposes physical properties of the light being evaluated and computes basic information "
58 "relative to the evaluation position";
61 ntype.
declare = file_ns::node_declare;
63 ntype.
gpu_fn = file_ns::node_shader_gpu_light_info;
#define SH_NODE_LIGHT_INFO
#define BLI_assert_unreachable()
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_light_info(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)
void register_node_type_sh_light_info()
@ NTREE_IS_GPU_SHADER_INTERNAL
GPUNodeLink * GPU_kernel_globals()
void search_link_ops_for_shader_material_lighting_node(nodes::GatherLinkSearchOpParams ¶ms)
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare