Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

GLSL-PathTracer

> DevOps
Open source

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

2.1K stars0 likes2 views
WebsiteGitHub

About

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

GLSL-PathTracer

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

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

Gallery















References/Credits

  • A huge shout-out to Cedric Guillemet (https://github.com/CedricGuillemet) for cleaning up the code, adding the UI, integrating ImGuizmo, cmake and quite a lot of fixes.
  • Tinsel Renderer (https://github.com/mmacklin/tinsel) A modified version of the scene description & loader from that project is used here.
  • Ray Tracing in One Weekend (https://github.com/petershirley/raytracinginoneweekend) Peter Shirley's excellent book introductory book on raytracing which helped me get started on this project.
  • Erich Loftis's THREE.js PathTracer (https://github.com/erichlof/THREE.js-PathTracing-Renderer).
  • OptiX Introduction Samples (https://github.com/nvpro-samples/optix_advanced_samples/tree/master/src/optixIntroduction)
  • Mitsuba Renderer (https://github.com/mitsuba-renderer/mitsuba) Reference for validation.
  • PBRT-v3 (https://github.com/mmp/pbrt-v3) which provides an endless source of knowledge. The online book is a gift that keeps giving.
  • Model links/credits are in the assets folder (See: Model Credits.txt)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++bsdfbvhdisneyglsl

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理