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

Files

 
main.cpp

Detailed Description

3D Math Pyramid

This example loads an indexed pyramid from data/pyramid.plg with mxObject::LoadPLG, then rotates, lights, and rasterizes its triangles with smooth vertex-color gradients through the CPU-side MXVK math pipeline. Its geometry, triangle layout, and face-local UV coordinates match models/obj/pyramid.obj. The software framebuffer defaults to 1280x720 and its Vulkan sprite is stretched to fit the window. Use --framebuffer WidthxHeight to override it.

Controls

  • Escape - quit
  • Mouse wheel - zoom in and out

Run it from the repository root:

./run.pl 3dmath_pyramid