Skip to content

twinksy1/ray-casting-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casting A Light Source With Rays

This is a small project which I then used to create my 3D ray casting project here. The point of this project was to familiarize myself with the behavior of rays in a 2D environment. Here rays shine out all the way until they hit a wall, the blue lines, and draws a red dot on each ray intersection.

Building

  • SDL2 developer library needs to be installed
    • Linux: sudo apt-get install libsdl2-dev
    • Windows: Tutorial

Then in cloned directory:

  • Build: make

Screenshots

Pic1 Pic2

About

Movable light using ray casting

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published