knightcrawler25/GLSL-PathTracer

A toy physically based GPU path tracer (C++/OpenGL/GLSL)

C++

2,064

237 commits

updated Feb 9, 2024

See the code

README

GLSL-PathTracer

A physically based path tracer that runs in a GLSL fragment shader.

Jinx

Tropical Island

Features

  • Unidirectional path tracer
  • Two-level BVH for instancing
  • Disney BSDF
  • Texture mapping (Albedo, Metallic-Roughness, Normal, Emission)
  • Analytic lights (Spherical, Rectangular, Directional)
  • Image based lighting
  • Multiple importance sampling
  • Tile rendering
  • OpenImageDenoise
  • Stochastic alpha testing
  • MagicaVoxel style homogeneous volumes
  • GLTF/GLB support (In progress)

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

Monster

WW2

RenderMan Swatch

Dragon

Stormtrooper

Panther

Crown

Mustang

Mustang_Red

Hyperion

Ajax

Dining Room

Rank3PoliceUnit

Staircase

Substance Boy

References/Credits

bsdf
bvh
disney
glsl
gpu
linux
opengl
path
path-tracer
pathtracer
path-tracing
pathtracing
ray
raytracer
ray-tracing
tracer
tracing
windows

knightcrawler25/GLSL-PathTracer

A toy physically based GPU path tracer (C++/OpenGL/GLSL)

C++

2,064

237 commits

updated Feb 9, 2024

See the code

README

GLSL-PathTracer

A physically based path tracer that runs in a GLSL fragment shader.

Jinx

Tropical Island

Features

  • Unidirectional path tracer
  • Two-level BVH for instancing
  • Disney BSDF
  • Texture mapping (Albedo, Metallic-Roughness, Normal, Emission)
  • Analytic lights (Spherical, Rectangular, Directional)
  • Image based lighting
  • Multiple importance sampling
  • Tile rendering
  • OpenImageDenoise
  • Stochastic alpha testing
  • MagicaVoxel style homogeneous volumes
  • GLTF/GLB support (In progress)

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

Monster

WW2

RenderMan Swatch

Dragon

Stormtrooper

Panther

Crown

Mustang

Mustang_Red

Hyperion

Ajax

Dining Room

Rank3PoliceUnit

Staircase

Substance Boy

References/Credits

bsdf
bvh
disney
glsl
gpu
linux
opengl
path
path-tracer
pathtracer
path-tracing
pathtracing
ray
raytracer
ray-tracing
tracer
tracing
windows

Significant stargazers

mrdoob

25,624 followers · starred Jul 2021

Amyspark

56 followers · starred Nov 2021

dan sinclair

194 followers · starred Feb 2021

Martin Gerhardy

161 followers · starred Dec 2022