10 b.add_input<
decl::Float>(
N_(
"Blend")).default_value(0.5f).min(0.0f).max(1.0f);
23 GPU_link(mat,
"world_normals_get", &in[1].link);
void node_type_gpu(struct bNodeType *ntype, NodeGPUExecFunction gpu_fn)
#define SH_NODE_LAYER_WEIGHT
void nodeRegisterType(struct bNodeType *ntype)
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 int node_shader_gpu_layer_weight(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_layer_weight()
void sh_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
NodeDeclareFunction declare