This is a supplemental code accompanying Ray Tracing Gems II, Chapter 14: The Reference Path Tracer. Code is based on IntroToDXR and implements a path tracer described in the article. The sample application loads GLTF scenes, specified via command line. The core of the path tracer can be found in single HLSL file - PathTracer.hlsl
.
-width [integer]
specifies the width (in pixels) of the rendering window-height [integer]
specifies the height (in pixels) of the rendering window-vsync [0|1]
specifies whether vsync is enabled or disabled-scene [path]
specifies the file path to a GLTF model-scenePath [path]
optionally specifies the root folder where scene data files can be found
The code uses the following dependencies:
- d3dx12.h, provided with an MIT license.
- stb_image.h, provided with an MIT license.
- DirectXTex, provided with an MIT license.
- DirectXTK, provided with an MIT license.
- DXC Compiler, provided with an University of Illinois Open Source
- ImGUI, provided with an MIT license.
- tiny glTF, provided with an MIT license.
- brdf.h, provided with CC0 license.
The repository includes assets for use when testing the renderer: Bathroom, by cenobi, licensed under a Creative Commons Attribution 3.0 License.