Planar Reflectors
Stencil buffer implementation
- Configure projection and viewing matrix, clear buffers
- Apply reflection transformation
- Draw scene normally (will be reflected) (skip mirror)
- Clear stencil to 0 and clear depth buffer
- Draw mirror polygon as stencil 1
- Clear color buffer everywhere stencil == 0