10 b.add_input<
decl::Color>(
N_(
"Color")).default_value({0.8f, 0.8f, 0.8f, 1.0f});
33 GPU_link(mat,
"world_normals_get", &in[2].link);
37 GPU_link(mat,
"set_value_zero", &in[1].link);
void node_type_gpu(struct bNodeType *ntype, NodeGPUExecFunction gpu_fn)
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
void node_type_size_preset(struct bNodeType *ntype, eNodeSizePreset size)
#define SH_NODE_BSDF_GLOSSY
#define NODE_CLASS_SHADER
void nodeRegisterType(struct bNodeType *ntype)
#define SHD_GLOSSY_MULTI_GGX
GPUNodeLink * GPU_constant(const float *num)
void GPU_material_flag_set(GPUMaterial *mat, eGPUMaterialFlag flag)
bool GPU_link(GPUMaterial *mat, const char *name,...)
bool GPU_stack_link(GPUMaterial *mat, struct bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
static void node_shader_init_glossy(bNodeTree *UNUSED(ntree), bNode *node)
static int node_shader_gpu_bsdf_glossy(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
static void node_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_sh_bsdf_glossy()
void sh_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
NodeDeclareFunction declare