Toycaster is a GPU accelerated raycaster written in Nim using OpenGL3.2 (EasyGL) + sdl2_nim. Instead of per pixel rendering on the CPU side, Toycaster uses a fullscreen quad + fragment shader to render each wall slice quickly in parallel.
- Install nim >= 0.17.03
- Clone the easygl repository
- Run
nimble install
in the easygl repository - Clone toycaster repo
- Run
nimble build
to compile toycaster - Run toycaster!