22 float ii = (lambda_nm - 380.0f) * (1.0f / 5.0f);
26 if (i < 0 || i >= 80) {
36 color *= 1.0f / 2.52f;
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a color
#define ccl_device_noinline
#define CCL_NAMESPACE_END
const KernelGlobalsCPU *ccl_restrict KernelGlobals
ccl_global float * color_out
ccl_device_inline void stack_store_float3(ccl_private float *stack, uint a, float3 f)
ccl_device_inline float stack_load_float(ccl_private float *stack, uint a)
ccl_inline_constant float cie_colour_match[][3]
ccl_device_inline float2 interp(const float2 &a, const float2 &b, float t)
color xyz_to_rgb(float x, float y, float z)
ccl_device_inline int float_to_int(float f)
CCL_NAMESPACE_BEGIN ccl_device_noinline void svm_node_wavelength(KernelGlobals kg, ccl_private ShaderData *sd, ccl_private float *stack, uint wavelength, uint color_out)