I was playing around with @griffpatch 's raycasting engine, and made light bounce off of walls. If fully realized, i could make reflective mirrors in a 3d first-person game. I'll definitiely follow the next step of the tutorial soon, so mirrors are soon to come. For now, enjoy real-time photons bouncing off of every surface. With 2 kinds of surfaces, reflective and non-reflective, this could totally be possible. _____________________________________________ Click and drag the red triangle to move it. Arrow keys to rotate it.
@griffpatch for the base raycasting engine, which i turned into an incredibly makeshift 2d raytracer instead.