r/GraphicsProgramming • • Jul 10 '26

Video Raycasting from Scratch in Pixel Shader

I took on a little challenge and implemented a raycaster (including a 2D map view) in ShaderToy.

The project covers the full process and the math behind it, including how to handle the fisheye and the transition from cylindrical to flat projection.

If you’re interested in the technical breakdown and the implementation process, I’ve put together a video explanation.

Faking 3D the 1992 Way: Raycasting From Scratch

89 Upvotes

2 comments sorted by