Ray Traced Hybrid Rendering Pipeline

Pipeline Design

  • Stages
    • Raster Stage - G-Buffer Gen + Post Processing
    • Ray Tracing Stage - Shaodw/AO/Indirect Illum Sampling
    • Compute Stage - Spatio Temporal Resample
  • Pipeline Diagram
    1_Pipeline_Design

Deferred Shading

  • G-Buffer Design

    RGB A RT
    Position Hitness RT1
    Albedo Roughness RT2
    Normal Metallic RT3
    Emissive Id RT4

Ray Tracing Sampeling

  • Acceleration Struture

    3_AS_Design
  • Rays per sample pixel

    • [1 shadow] + [1 ao] + [1 secondary] + [1 secondary shadow] spp
  • Shadow Sampling Illustration

    4_Shadow_Sample
  • Indirect Illumination Sampling Illustration

    5_Indirect_Sample

Computing Filtering and Reconstruction

  • Shadow&AO Reconstruction
    • Pipeline Design

      6_SVGF_design
    • Illuntration

      7_SVGF_filtered
  • Illumination Reconstruction
    • Pipeline Design

      8_BMFR_design
    • Illuntration

      9_BMFR_filtered

Build

  1. install visual studio 2019
  2. modify the "cd D:\Repos\DX12-HybridPipeline" in GenerateProjectFiles.bat to your root
  3. run the GenerateProjectFiles.bat script to build the vs project