Skip to content

BobLChen/PathTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLSL-PathTracer

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

This repo modified from the original repo: https://github.com/knightcrawler25/GLSL-PathTracer

Build

Support for WindowsMacOSUbuntu and test pass.

git clone https://github.com/BobLChen/PathTracer.git
cd PathTracer
mkdir build
cd build
cmake ..
make

Features

  • Unidirectional PathTracing
  • 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)

TODO

  • Support for different texture sizes
  • Support for different model format
  • Support for different light types
  • Support for different material model

Sample Scenes

These assets modified from the origin repo. Link to origin repo:https://github.com/knightcrawler25/GLSL-PathTracer Assets:https://drive.google.com/file/d/1SK9fRyzvpHBNBFb0Gc6nDvDkH7AHVj6H/view?usp=sharing

Screenshots

1

2

3

4

5

6

7

8

10