Let's Code MS DOS 0x23: 2nd Reality Lens Effect

In 1993 the Future Crew released the seminal demo “Second Reality”. Last episode we re-implemented the tunnel effect, this time we try to understand and replicate the lens effect. A bouncing, tinted glass ball that distorts the background image. Thirty years back it was pretty jaw dropping, and even today we can learn something! Support me on Patreon:   / root42   Support me on Ko-Fi: https://ko-fi.com/root42 Support me on PayPal: https://paypal.me/ArneSchmitz Support me on YouTube:    / @root42   Music: A Little Wonder by Spino2006 Source code: https://github.com/root42/doslens 0:00 Introduction 2:49 Lens formula 6:50 The Code Stub 9:47 The Lens Precomputation 23:54 Drawing the Lens Effect 29:55 Adding a Color Tint 35:12 Closing Words