Path tracing is a method of rendering images faithful to reality. The core algorithm of this WebGL Path Tracer is implemented in GLSL fragment shader. Each ray bounces in the scene around five times.
A
Demo is uploaded in YouTube and code is provided in
GitHub.
Features:
- Diffuse and Blinn-Phong
- Fresnel Reflection and Refraction
- Subsurface Scattering
- Super Sampling Anti-aliasing
- Intersection
Interaction:
- Space: pause toggle
- Left button: rotate scene
- Middle button: translate scene
- Right button: zoom in/ out
- Control panel: add objects and change attributes