Blender  V2.93
Functions | Variables
svm_math_util.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device void svm_vector_math (float *value, 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 (float t)
 
ccl_device_inline float3 svm_math_gamma_color (float3 color, float gamma)
 

Variables

ccl_static_constant float blackbody_table_r [6][3]
 
ccl_static_constant float blackbody_table_g [6][3]
 
ccl_static_constant float blackbody_table_b [6][4]
 

Function Documentation

◆ svm_math()

ccl_device float svm_math ( NodeMathType  type,
float  a,
float  b,
float  c 
)

◆ svm_math_blackbody_color()

ccl_device float3 svm_math_blackbody_color ( float  t)

◆ svm_math_gamma_color()

ccl_device_inline float3 svm_math_gamma_color ( float3  color,
float  gamma 
)

Definition at line 265 of file svm_math_util.h.

References make_float3, powf, float3::x, float3::y, and float3::z.

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

◆ svm_vector_math()

CCL_NAMESPACE_BEGIN ccl_device void svm_vector_math ( float value,
float3 vector,
NodeVectorMathType  type,
float3  a,
float3  b,
float3  c,
float  param1 
)

Variable Documentation

◆ blackbody_table_b

ccl_static_constant float blackbody_table_b[6][4]
Initial value:
= {
{0.0f, 0.0f, 0.0f, 0.0f},
{0.0f, 0.0f, 0.0f, 0.0f},
{0.0f, 0.0f, 0.0f, 0.0f},
{-2.02524603e-11f, 1.79435860e-07f, -2.60561875e-04f, -1.41761141e-02f},
{-2.22463426e-13f, -1.55078698e-08f, 3.81675160e-04f, -7.30646033e-01f},
{6.72595954e-13f, -2.73059993e-08f, 4.24068546e-04f, -7.52204323e-01f},
}

Definition at line 224 of file svm_math_util.h.

Referenced by svm_math_blackbody_color().

◆ blackbody_table_g

ccl_static_constant float blackbody_table_g[6][3]
Initial value:
= {
{-7.50343014e+02f, 3.15679613e-04f, 4.73464526e-01f},
{-1.00402363e+03f, 1.29189794e-04f, 9.08181524e-01f},
{-1.22075471e+03f, 2.56245413e-05f, 1.20753416e+00f},
{-1.42546105e+03f, -4.01730887e-05f, 1.44002695e+00f},
{-1.18134453e+03f, -2.18913373e-05f, 1.30656109e+00f},
{-5.00279505e+02f, -4.59745390e-06f, 1.09090465e+00f},
}

Definition at line 215 of file svm_math_util.h.

Referenced by svm_math_blackbody_color().

◆ blackbody_table_r

ccl_static_constant float blackbody_table_r[6][3]
Initial value:
= {
{2.52432244e+03f, -1.06185848e-03f, 3.11067539e+00f},
{3.37763626e+03f, -4.34581697e-04f, 1.64843306e+00f},
{4.10671449e+03f, -8.61949938e-05f, 6.41423749e-01f},
{4.66849800e+03f, 2.85655028e-05f, 1.29075375e-01f},
{4.60124770e+03f, 2.89727618e-05f, 1.48001316e-01f},
{3.78765709e+03f, 9.36026367e-06f, 3.98995841e-01f},
}

Definition at line 206 of file svm_math_util.h.

Referenced by svm_math_blackbody_color().