Skip to content

Latest commit

 

History

History

PlanarReflections

README.md

Dynamic Planar Reflections

Code Name: PlanarReflections

Description

In this example, dynamic planar reflection is applied to a mirror-like wall, allowing moving objects in the scene to be dynamically tracked through it.

Output

Controls

Input Action
W/A/S/D Move the camera
Mouse Look around with the camera
Esc Close the window

Application Parameters

Settings

Parameter / Key Type Usage in Code Description Default Value
AppSettings.ClearColor VkClearColorValue AppSettings::ClearColor Background color of the screen
AppSettings.MouseSensitivity float AppSettings::MouseSensitivity Mouse sensitivity value
AppSettings.CameraSpeed float AppSettings::CameraSpeed Speed of the camera

Learning Objectives

  • Implementing dynamic planar reflections for flat surfaces
  • Combining dynamic planar reflections with material system and shading model

Shader Status

Shader Type Status Notes
GLSL ✅
HLSL ✅
Slang ❌ Will be implemented.

Theoretical Background

None

Extensions Used

Instance

Window system-dependent extensions:

  • VK_KHR_surface
  • VK_KHR_win32_surface (Windows)

Device

  • VK_KHR_swapchain