Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- add3
- Add two 3-D vectors.
- ambient_
occlusion - Compute ambient occlusion by casting rays in the hemisphere.
- atrous_
denoise - A-trous wavelet denoising pass for progressive path traced images.
- box_
filter - Box filter denoising pass (simple spatial blur).
- clamp_
color - Clamp each component of a color to [0,1].
- cosine_
sample_ hemisphere - Simple hemisphere sampler using cosine-weighted distribution.
- cross3
- Cross product of two 3-D vectors.
- distribution_
ggx - GGX normal distribution function.
- dot3
- Dot product of two 3-D vectors.
- fresnel_
schlick - Schlick Fresnel approximation.
- gamma_
correct - Apply sRGB gamma to a color.
- geometry_
smith - Smith’s geometry function (GGX).
- length3
- Length of a 3-D vector.
- linear_
to_ srgb - Linear to sRGB gamma correction.
- mul_
color - Component-wise multiply two RGB colors.
- normalize3
- Normalize a 3-D vector (returns zero vector if near zero).
- path_
trace_ step - Trace a single path and accumulate radiance.
- pbr_
shading - Cook-Torrance PBR BRDF shading.
- phong_
shading - Phong shading model.
- reflect3
- Reflect direction
dabout normaln(both normalized). - refract
- Compute refraction direction using Snell’s law.
- render_
direct - Ray trace a simple scene (direct illumination only) on the CPU.
- scale3
- Scale a 3-D vector by a scalar.
- schlick_
reflectance - Schlick approximation for reflectance at a dielectric interface.
- soft_
shadow_ factor - Compute soft shadow factor (0=fully shadowed, 1=fully lit) by sampling
an area light with
num_samplesjittered samples. - sub3
- Subtract two 3-D vectors.
- temporal_
accumulate - Temporal accumulation (exponential moving average) denoising.
- tonemap_
aces - ACES filmic tone mapping.
- tonemap_
filmic - Filmic tone mapping (Hejl and Burgess-Dawson approximation).
- tonemap_
reinhard - Reinhard tone mapping operator.
- uniform_
sample_ hemisphere - Uniform hemisphere sampler.