markx86 / raycaster

A simple raycaster made with raylib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raycaster

A simple raycaster (made with raylib) I made to learn about compute shaders.
This project provides both a CPU and GPU based renderers examples.

The CPU based renderer renders the scene using the CPU. It's slow and has to render at a lower resolution. Build it using cmake <path to project> -DUSE_COMPUTE_SHADERS=OFF.
The GPU based renderer instead uses compute and fragment shaders to render the scene at a much higher resolution and framerate. Build it using cmake <path to project> -DUSE_COMPUTE_SHADERS=ON. Note: the executable has to be run from the root directory of the project, otherwise it won't find the shader files.

About

A simple raycaster made with raylib


Languages

Language:C 72.9%Language:GLSL 23.4%Language:CMake 3.7%