The twilight: the diffuse light extended past the terminator to where
the light is angle (radians, 0 to 1.5) below the horizon, fading out
smoothly (where it meets the light on the day side: the same brightness
and slope, so no line shows), and the night texture fading in across it.
0 (the default): none, the light ends at the terminator (an airless
body). Not in OpenFrames. Can change at any time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Sphere), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | angle |
radians below the horizon (clamped to 0 to 1.5) |
subroutine set_twilight(self, angle) class(Sphere), intent(inout) :: self real(wp), intent(in) :: angle !! radians below the horizon (clamped to 0 to 1.5) self%twilight_ = max(0.0_wp, min(1.5_wp, angle)) call apply_material(self) end subroutine set_twilight