Improving Numerical Accuracy
Lines on Surface of Triangle
- Stencil method
- Disable color write and depth test, enable stencil
- Clear stencil buffer, enable write 1 where pixels are drawn
- Draw object as edges
- Enable color write and depth test
- Draw object, masking pixels with stencil = 1
- Disable stencil, enable color write
- Draw object again as edges