rm-racer

This is a demo of a software raymarcher running on the CPU, which I wrote in C3.

Here the mini game is just an excuse to showcase the raymarcher, hence the inconsistency between the title screen and the game, I just did this for fun ^^

You can find the source code on GitHub.

Play it below

Examples

To make sure the mini game runs reasonably well for everyone, the WASM demo is rendered at a very low resolution and then upscaled for display.

But you can achieve much better rendering quality when running it natively on desktop, so here are a few short video examples in 1280x720:

More infos

This raymarcher is implemented with a several sort of optimizations to make it usable in realtime, especially in WASM here:

It also features (enabled at compile time):

And for development a collection of signed distance functions, plenty of PBR shading functions, and mathematical functions for manipulating SIMD vectors of vectors.