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

Files

 
glitch.cpp

Detailed Description

Glitch Cube

image

Glitch Cube is a stylized 3D model viewer that renders a textured cube with a time-based transform and MXVK text overlays. It is intended as a compact example of model loading, camera control, and shader-driven presentation.

Controls

  • Left mouse drag - orbit the camera around the cube
  • Mouse wheel - zoom in or out
  • Space - toggle the automatic rotation axis
  • Page Up / Page Down - scale the cube
  • Escape - quit

How It Works

The cube is loaded through VKAbstractModel from the compressed model and texture manifest data in data/. The example updates a model/view/projection UBO every frame, then renders the model with custom shaders while the background and text are drawn through the normal MXVK sprite and text paths.