Transparency Modulation
Vary Transparency With Depth
- Create 1D texture with Alpha ramp from 0 to 1
- Use GL_OBJECT_LINEAR or GL_EYE_LINEAR texture generation
- Draw object with texture enabled and blend function
- GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
- For textured objects use multiple passes