A efficient and lean implementation of the ray casting algorithm.
- Both floating-point and fixed-point (8-bit precision) are available.
- no division operations
- 8 x 8-bit multiplications per vertical line
- precalculated trigonometric and perspective tables
This work is built with SDL2.
- macOS:
brew install sdl2
- Ubuntu Linux / Debian:
sudo apt install libsdl2-dev
raycaster
is released under the MIT License.
Use of this source code is governed by a MIT license that can be found in the LICENSE file.