UNPKG
@doegis/core
Version:
latest (0.1.0)
0.1.0
DOE GIS API
@doegis/core
/
views
/
3d
/
environment
/
atmosphereUtils.js
3 lines
(1 loc)
•
243 B
JavaScript
View Raw
1
2
3
import
{clamp
as
t}
from
"../../../core/mathUtils.js"
;
function
e
(
e
){
const
o=
1e5
;
return
t
((e-o)/(
1e6
-o),
0
,
1
)}
const
o=
1e4
,r=
.085
,n=
1e5
;
export
{n
as
atmosphereHeight,e
as
computeInnerAltitudeFade,o
as
innerAtmosphereDepth,r
as
rayLeighScaleHeight};