40 if (
out[2].hasoutput ||
59 if (
STREQ(socket_out_->identifier,
"Is Camera Ray")) {
62 if (
STREQ(socket_out_->identifier,
"Ray Length")) {
65 NodeItem res = val(0.0f);
83 "Retrieve the type of incoming ray for which the shader is being executed.\nTypically used "
84 "for non-physically-based tricks";
87 ntype.
declare = file_ns::node_declare;
88 ntype.
gpu_fn = file_ns::node_shader_gpu_light_path;
#define SH_NODE_LIGHT_PATH
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_light_path(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,...)
@ GPU_MATFLAG_IS_DIFFUSE_OR_GLOSSY_RAY_FLAG
void register_node_type_sh_light_path()
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)
GPUNodeLink * GPU_shading_data()
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
NodeMaterialXFunction materialx_fn
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare