Skip to main content

Module path_tracer

Module path_tracer 

Source
Expand description

CPU path tracer using GPU-style algorithms.

Implements a Monte Carlo path tracer with Lambertian, Metal, and Dielectric materials, sphere and triangle primitives, and a progressive pixel buffer.

Structs§

Camera
A simple pinhole camera.
HitRecord
Record of a ray–surface intersection.
Material
A surface material with albedo colour and scattering type.
PathTracerBuffer
A pixel accumulation buffer for progressive rendering.
PathTracerRenderer
Renderer that progressively renders a scene into a PathTracerBuffer.
PathTracerScene
A scene containing geometry, materials, and lights.
PointLight
A point light source.
Ray
A ray with an origin and a direction.
Sphere
A sphere primitive.
Triangle
A triangle primitive.

Enums§

MaterialType
The scattering type of a material.