Skip to content

Latest commit

 

History

History

README.md

Simple Cubemap Skybox

Code Name: CubemapSkybox

Description

In this example, a skybox is placed on the scene using a cubemap texture. It is viewed using the orbit camera.

Output

Controls

Input Action
Mouse Move Rotataing the orbit camera
Mouse Scroll Zooming the orbit 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.CameraZoomSpeed float AppSettings::CameraZoomSpeed Zoom speed of the camera

Learning Objectives

  • Loading cubemap images in Vulkan
  • Using cubemap images in shaders
  • Drawing skyboxes with using cubemap images
  • Implementing the orbit camera

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