Correcting Lighting in Stencil Reflections
- by Reanimation
I'm just playing around with OpenGL seeing how different methods of making shadows and reflections work.
I've been following this tutorial which describes using GLUT_STENCIL's and MASK's to create a reasonable interpretation of a reflection.
Following that and a bit of tweaking to get things to work, I've come up with the code below.
…