1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/// Default maximum path bounce depth for `PathTraceIntegrator`.
pub const RT_DEFAULT_MAX_BOUNCES: u32 = 8;
/// Default maximum recursion depth for `WhittedIntegrator`.
pub const RT_DEFAULT_WHITTED_DEPTH: u32 = 6;
/// Default HDR luminance clamp suppressing extreme Monte Carlo fireflies.
pub const RT_DEFAULT_FIREFLY_CLAMP: f32 = 20.0;
/// Sentinel linear depth value written into G-buffers for sky/background misses.
pub const RT_SKY_DEPTH: f32 = 1.0e5;
/// Default bounce depth at which Russian roulette path termination begins.
pub const RT_DEFAULT_RR_START_BOUNCE: u32 = 3;
/// Upper cap on Russian roulette survival probability preserving finite path lengths.
pub const RT_RR_MAX_SURVIVAL: f32 = 0.95;
/// Lower floor on Russian roulette survival probability preventing extreme weight variance.
pub const RT_RR_MIN_SURVIVAL: f32 = 0.05;
/// Ray origin surface offset preventing shadow acne and self-intersection.
pub const RT_SURFACE_BIAS: f32 = 1.0e-3;
/// Minimum GGX alpha preventing division by zero on smooth specular lobes.
pub const RT_MIN_ALPHA: f32 = 1.0e-3;
/// Minimum PDF threshold for MIS weighting and BSDF division guards.
pub const RT_MIN_PDF: f32 = 1.0e-6;
/// Default multi-sample soft shadow count for `WhittedIntegrator`.
pub const RT_DEFAULT_WHITTED_SHADOW_SAMPLES: u32 = 4;
/// Default hemisphere occlusion ray count for `RtaoIntegrator`.
pub const RT_DEFAULT_AO_SAMPLES: u32 = 8;
/// Default occlusion query distance in meters for `RtaoIntegrator`.
pub const RT_DEFAULT_AO_RADIUS: f32 = 2.0;
/// PCG32 LCG multiplier constant.
pub const RT_PCG_MULT: u64 = 6_364_136_223_846_793_005;
/// PCG32 default increment stream.
pub const RT_PCG_INC: u64 = 1_442_695_040_888_963_407;