Files | |
| matrix.cpp | |
Matrix Rain recreates the classic falling-glyph effect using SDL_ttf and MXVK sprites. The glyphs are rendered into an off-screen SDL surface, tinted by depth level, and uploaded into a texture every frame. The bundled default font is the bold Noto Sans CJK JP face; use --font-path <file> to point at another font.
The sample builds a glyph set from the bundled bold Noto Sans CJK JP font, lays out vertical streams to match the current window size, and updates their positions on a timer. The canvas is then uploaded to a sprite and drawn to the swapchain, so the whole effect stays inside the Vulkan presentation loop.