12 b.add_input<
decl::Float>(
N_(
"Wavelength")).default_value(500.0f).min(380.0f).max(780.0f);
23 float *
data =
static_cast<float *
>(
MEM_mallocN(
sizeof(
float) *
size * 4,
"cie_xyz texture"));
void node_type_gpu(struct bNodeType *ntype, NodeGPUExecFunction gpu_fn)
#define NODE_CLASS_CONVERTER
void node_type_size_preset(struct bNodeType *ntype, eNodeSizePreset size)
#define SH_NODE_WAVELENGTH
void nodeRegisterType(struct bNodeType *ntype)
GPUNodeLink * GPU_color_band(GPUMaterial *mat, int size, float *pixels, float *row)
GPUNodeLink * GPU_constant(const float *num)
bool GPU_stack_link(GPUMaterial *mat, struct bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void IMB_colormanagement_wavelength_to_rgb_table(float *r_table, int width)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
void *(* MEM_mallocN)(size_t len, const char *str)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_wavelength(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void sh_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass)
void register_node_type_sh_wavelength()
NodeDeclareFunction declare