2.2 Planets with atmospheric layer
In the presence of an atmosphere, additional effects such as spectral filtering of the di-rect componentand ambient in-scatteringmust be taken into account. At high altitudes
¦¥
§'10
, we can describe the atmospheric layer as an increase of the planet disc’sradius of influence:
2
¢¡
0¦2 0
7¢
'10'108
7!
(9)where
7
is the effective thickness of the atmospheric layer (in Orbiter given by theAtmAlt parameter). At low altitudes, when the object is alreadywithin the atmosphere,this value is no longeradequate. We simply assume that at groundlevel the atmosphereaffects the lighting parameters up to an elevation
£
of the sun of
£
7
¦
'@
deg. abovethe horizon, and interpolate to the actual altitude:
2
¡
0
¥¤
2
¡
02
7
2
¡
0
¢
§¦¦
I
2
7
2
¡
0
!
8
¨
¨
7!
(10)where
2
7
¦
£
7¢
©¨
E
, and
2
¡
0
on the right-hand side of Eq. 10 is taken from Eq. 9.Now, lighting parameters will be modified if
¥
¡
¤
and
2 (
¢
2
¢¡
0
(11)Again we can distinguish the two cases of Eq. 4.
2.2.1 Case 1: totality zone
For totality, we set
1a
RGB
¦
8
8
"!
as before. However, in the case of partial shadow,we now take into account that we lose more of the blue direct component due to scat-tering. The amount of spectral dispersion is linked to the atmospheric density
7
atground level, with the following ad-hoc formulae:
¦
5
1
7¢@!
8
bounded at
R
¨
¨SR
(12)
RGB
¦
@
R
SR
"!
@
#$
(13)Now we use a piecewise linear transition:
1b
RGB
¦
&%
#P@
RGB
!¢
RGB
where
#
9¦
&
02
040
"'
4
04
if
2 (
£¢
2 0
#
RGB
where
#
9¦
'&
04(02 60"2
otherwise(14)Here, the top equation describes the case that the sun is fully above the horizon, andpropagates from full lighting (1,1,1) to maximum dispersion. The bottom equationdescribes the case of the sun is partially covered by the horizon, and propagates fromthe dispersed state to darkness (0,0,0).
2.2.2 Case 2: annularity zone
At distances beyond the totality zone atmospheric effects are considered negligible.Lighting parameters are calculated as described in Section 2.1.2.3
Leave a Comment