Improving Numerical Accuracy
Projective Shadows
- One simple method:
- Disable lighting, set color to shadow color
- Scale by 0.0 in Y
- Translate to “floor”
- Coplanar surfaces cause “Z fighting”
Solution: Offset from “floor” in model space
- Don’t go too far or visible gap will be apparent
- Or use stencil method (slower, more accurate)