Files | |
| example.cpp | |
Sprite3D Example shows how to build a 3D scene out of sprites instead of meshes. It combines a starfield, a flying saucer sprite, and an orbiting camera to demonstrate the 3D sprite path in MXVK.
The example creates a generated star texture for the background and loads a transparent saucer sprite from the example data directory. Both are converted into VK_Sprite3D batches and drawn into the same scene.
The stars are generated procedurally with orbit rings, twinkle variation, and depth layering. The saucer instances move along their own flight paths so the scene feels populated even though it is built entirely from sprite primitives.