This is an improved implementation of "Fast Indirect Illumination Using Two Virtual Spherical Gaussian Lights" on Microsoft MiniEngine. It roughly approximates virtual point lights (VPLs) with two virtual spherical Gaussian lights (VSGLs) for real-time single-bounce indirect illumination.
- Approximate diffuse-to-diffuse, diffuse-to-glossy, glossy-to-diffuse, and glossy-to-glossy reflections
- Completely dynamic, no precomputation and no lookup tables
- Specialized for scenes locally lit by a spotlight
- Generate VPLs by rendering a reflective shadow map
- Approximate the VPLs into a diffuse VSGL and glossy VSGL
- Compute lighting from the two VSGLs
We use an accurate SG lighting method presented in "Hierarchical Light Sampling with Accurate Spherical Gaussian Lighting" (SIGGRAPH ASIA 2024 Conference Paper). For the GGX microfacet BRDF under sharp SG lights, this method produces higher-quality highlights than the conventional anisotropic SG lighting method [Xu et al. 2013].
Anisotropic SG lighting [Xu et al. 2013] |
Our SG lighting [Tokuyoshi et al. 2024] |
Reference |
- Light leaks
- No indirect shadows
- Lack of illumination details due to the rough approximation
- Windows 10
- Visual Studio with Windows SDK
- Open
ModelViewer/ModelViewer.sln
- Select configuration: Debug (full validation), Profile (instrumented), Release
- Build and run
- Forward/Backward/Strafe: left thumbstick or WASD (FPS controls)
- Up/Down: triggers or E/Q
- Yaw/Pitch: right thumbstick or mouse
- Forward/Backward/Strafe: left thumbstick or WASD (FPS controls) + left mouse button
- Up/Down: triggers or E/Q + left mouse button
- Yaw/Pitch: right thumbstick or mouse + left mouse button
- Toggle slow movement: click left thumbstick or lshift
- Open debug menu: back button or backspace
- Navigate debug menu: dpad or arrow keys
- Toggle debug menu item: A button or return
- Adjust debug menu value: dpad left/right or left/right arrow keys
This software is released under the MIT License, see LICENSE.txt
.