Re:My mental model of how alpha opacity works is wrong (2020)
by magicalhippo on Sunday February 06, 2022 @08:11AM
(#30232199)
This is more generally called absorbance[1] and stems from the Beer-Lambert law[2].
Been too long since I've done computer graphics, but you made me think about implementing transparency pass using absorbance instead.
[1]: https://en.wikipedia.org/wiki/Absorbance#Absorbance_of_a_mat...
[2]: https://en.wikipedia.org/wiki/Transmittance#Beer%E2%80%93Lam...
So to give some examples, a material with 100% transmission would have a density of 0, a material with 10% transmission would have a density of 1.0, and a material with 1% transmission would have a density of 2.0.
Density values have some advantages, including:
- They can be combined with simple addition
- Compared to transmission or opacity values, they correspond more closely to human visual perception