Blender V4.3
math_util.h File Reference

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, float3 a, float3 b, float3 c, float param1)
 
ccl_device float svm_math (NodeMathType type, float a, float b, float c)
 
ccl_device float3 svm_math_blackbody_color_rec709 (float t)
 
ccl_device_inline float3 svm_math_gamma_color (float3 color, float gamma)
 
ccl_device float3 svm_math_wavelength_color_xyz (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,
float gamma )

Definition at line 229 of file math_util.h.

References color, make_float3(), and powf.

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

◆ svm_math_wavelength_color_xyz()

ccl_device float3 svm_math_wavelength_color_xyz ( float lambda_nm)

◆ svm_vector_math()