RUN WITH TURBO MODE Demonstration: A tiled floor A tinted mirror in the Z 20 plane A cube Pixel brightness determined by distance from viewer Feel free to remix with some additional objects / features Made completely by me ======================================== Variables and their meaning in the renderer width, height - screen size, never changes screenx, screeny - current rendered pixel position pitch, yaw - direction of the ray based on current screenx and screeny ray X, Y, Z - current ray position ray D X, Y, Z - current ray's velocity xres, yres - resolution on both axes, if it's too low the renderer will skip too many pixels