API Reference / extinctionMag · function
Function: extinctionMag()
function extinctionMag(altAppDeg, k?): number;
Atmospheric extinction in magnitudes at an apparent altitude: k mag per
air mass (default 0.2, a clear-sky visual coefficient; hazy sites run
0.3+). This is the dimming the horizon note describes -- computed, so a
render pipeline consumes a number instead of re-inventing the physics.
Parameters
| Parameter | Type | Default value |
|---|---|---|
altAppDeg | number | undefined |
k | number | 0.2 |
Returns
number