MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
starfield Directory Reference

Files

 
starfield.cpp

Detailed Description

Starfield

Starfield is a point-sprite stress and presentation demo. It renders 50,000 layered stars with additive blending, twinkle variation, depth motion, and a warp-speed boost.

Controls

  • Hold Space - warp-speed boost
  • Escape - quit

How It Works

The example stores star position, speed, color, twinkle phase, and size data on the CPU, uploads point-sprite vertices each frame, and renders them with mxvk::VK_PointSpriteBatch.