48 const float m_1_pi = 0.318309886183790671538f;
52 float3 s = 1.9f -
A + 3.5f * ((
A - 0.8f) * (
A - 0.8f));
54 float3 l = 0.25f * m_1_pi * radius;
64 exp_r_3_d.x =
expf(-r / (3.0f * d.x));
65 exp_r_3_d.y =
expf(-r / (3.0f * d.y));
66 exp_r_3_d.z =
expf(-r / (3.0f * d.z));
67 float3 exp_r_d = exp_r_3_d * exp_r_3_d * exp_r_3_d;
73 return (exp_r_d + exp_r_3_d) / (4.0 * d);
static constexpr float SSS_BURLEY_TRUNCATE
static constexpr float SSS_BURLEY_TRUNCATE_CDF
static constexpr float SSS_TRANSMIT_LUT_BIAS
static constexpr float SSS_TRANSMIT_LUT_SIZE
static constexpr int SSS_SAMPLE_MAX
static constexpr float SSS_TRANSMIT_LUT_SCALE
static constexpr float SSS_TRANSMIT_LUT_RADIUS
static float3 burley_setup(float3 radius, float3 albedo)
static float3 burley_eval(float3 d, float r)
static constexpr float SSS_TRANSMIT_LUT_STEP_RES
ATTR_WARN_UNUSED_RESULT const BMLoop * l
VecBase< float, 4 > float4
VecBase< float, 3 > float3
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
float4 samples[SSS_SAMPLE_MAX]