Code Name: CubemapRefractions
In this example, the cubemap refraction calculation is tested assuming the sphere presented is made of glass. Only entry refraction is assumed for the sphere; exit refraction is not taken into account.
| Input | Action |
|---|---|
| Mouse Move | Rotataing the orbit camera |
| Mouse Scroll | Zooming the orbit camera |
| Esc | Close the window |
| 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.CameraZoomSpeed | float | AppSettings::CameraZoomSpeed | Zoom speed of the camera |
- Implementing refractions with using static cubemaps
| Shader Type | Status | Notes |
|---|---|---|
| GLSL | ✅ | |
| HLSL | ✅ | |
| Slang | ❌ | Will be implemented. |
None
Window system-dependent extensions:
- VK_KHR_surface
- VK_KHR_win32_surface (Windows)
- VK_KHR_swapchain
