Blender V5.0
math_util.h File Reference
#include "kernel/svm/types.h"
#include "kernel/tables.h"
#include "util/math.h"
#include "util/types.h"

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device void svm_vector_math (ccl_private float *value, ccl_private float3 *vector, NodeVectorMathType type, const float3 a, const float3 b, const float3 c, float param1)
ccl_device float svm_math (NodeMathType type, const float a, float b, const float c)
ccl_device float3 svm_math_blackbody_color_rec709 (const float t)
ccl_device_inline float3 svm_math_gamma_color (float3 color, const float gamma)
ccl_device float3 svm_math_wavelength_color_xyz (const float lambda_nm)

Function Documentation

◆ svm_math()

◆ svm_math_blackbody_color_rec709()

◆ svm_math_gamma_color()

ccl_device_inline float3 svm_math_gamma_color ( float3 color,
const float gamma )

Definition at line 241 of file math_util.h.

References ccl_device_inline, make_float3(), powf, float3::x, float3::y, and float3::z.

Referenced by GammaNode::constant_fold(), and svm_node_gamma().

◆ svm_math_wavelength_color_xyz()

ccl_device float3 svm_math_wavelength_color_xyz ( const float lambda_nm)

Definition at line 260 of file math_util.h.

References ccl_constant, ccl_device, cie_color_match, float_to_int(), i, interp(), and make_float3().

Referenced by svm_node_wavelength().

◆ svm_vector_math()