The light (e.g. the Sun; it must stay alive while set), and its radius (optional: see set_light_radius).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ShadowCones), | intent(inout) | :: | self | |||
| class(ReferenceFrame), | intent(in), | target | :: | light |
the light, e.g. the Sun (not owned) |
|
| real(kind=wp), | intent(in), | optional | :: | radius |
scene units (see set_light_radius) |
subroutine set_light(self, light, radius) class(ShadowCones), intent(inout) :: self class(ReferenceFrame), intent(in), target :: light !! the light, e.g. the Sun (not owned) real(wp), intent(in), optional :: radius !! scene units (see set_light_radius) self%light_ => light if (present(radius)) call self%set_light_radius(radius) end subroutine set_light