Skip to content

markx86/raycaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.