u/Otis_Infin r/compsci • Recommends
On “I just learned Peterson's algorithm for mutual exclusion; it's pretty goddamn brilliant (for only being a few lines of code). You got anything better?”
…the real algorithms. Take for example 'phong shading' done with an simple env map with a bright blurry dot in the middle of the texture. Phong shading is a complex per-pixel operation, however you can get the same result by using a simple environment mapping trick which is extremely fast. For kicks, check this old but great demo by Complex: Dope: link to this video
Everything you see in there is done with trickery algo's and software rendering (no 3d hardware). Hint for viewers to the cat scene, no that's not done by projection of shadows ;)…