Skip to content

prideout/GLSL-PathTracer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLSL-PathTracer

A physically based Path Tracer that runs in a GLSL Fragment shader.

Stormtrooper

Hyperion

Panther Recreation of a scene from Greyscalegorilla. Render time: 2 minutes on a GTX 750 Ti. 3 bounces

Crown

Features

  • Unidirectional PathTracer
  • RadeonRays for building BVHs (Traversal is performed in a shader)
  • Metallic-Roughness Material Model
  • Texture Mapping (Albedo, Metallic, Roughness, Normal maps)
  • Spherical and Rectangular Area Lights
  • IBL with importance sampling
  • Progressive + Tiled Rendering (Reduces GPU usage and timeout when depth/scene complexity is high)

Build Instructions

Please see INSTALL-WIN.txt for the build instructions for Windows and INSTALL-LINUX.txt for Linux

Sample Scenes

A couple of sample scenes are provided in the repository. Additional scenes can be downloaded from here: https://drive.google.com/file/d/1UFMMoVb5uB7WIvCeHOfQ2dCQSxNMXluB/view

TODO

  • IBL importance sampling
  • Emissive geometry
  • Two-level BVH for instances and transforms
  • Support for different texture sizes
  • Performance improvements
  • Support for rendering out animation sequences

Additional Screenshots

Ajax

Dining Room

Rank3PoliceUnit

Staircase

Substance Boy

City

Dragon

References/Credits

About

A GLSL Path Tracer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.8%
  • GLSL 20.3%
  • CMake 1.3%
  • Other 0.6%