20 .default_value(500.0f)
54 ntype.
ui_description =
"Convert a wavelength value to an RGB value";
57 ntype.
declare = file_ns::node_declare;
59 ntype.
gpu_fn = file_ns::node_shader_gpu_wavelength;
#define NODE_CLASS_CONVERTER
#define SH_NODE_WAVELENGTH
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_wavelength(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 * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
GPUNodeLink * GPU_color_band(GPUMaterial *mat, int size, float *pixels, float *r_row)
void register_node_type_sh_wavelength()
GPUNodeLink * GPU_constant(const float *num)
BMesh const char void * data
void IMB_colormanagement_wavelength_to_rgb_table(float *r_table, int width)
static constexpr int _160
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare