Height-basedOptical Depth
Nice solution, good for glFogCoord
?
?
?
? ?(t) dt =
?D ? ?(Y1) , ?Y ? 0
? 1 + ( ?D / ?Y )2 ?, ? ?(y) dy , ?Y ? 0
Y2
Y1
b
a
? ?(y) dy = ? ?(y) dy - ? ?(y) dy
Y2
Y1
Y2
-?
Y1
-?
This can be implemented as two 1D table lookups.
Previous slide
Next slide
Back to first slide
View graphic version