Whether this frame carries a light source: a point light at its origin (e.g. the Sun), not dimmed with distance (default false; OpenFrames' setLightSourceEnabled). While any frame of a window's scene has one, the window's own light (WindowProxy%set_light_*) is off.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout) | :: | self | |||
| logical, | intent(in) | :: | enable |
(true: a point light at the frame's origin) |
subroutine set_light_source_enabled(self, enable) class(ReferenceFrame), intent(inout) :: self logical, intent(in) :: enable !! (true: a point light at the frame's origin) self%light_source = enable if (self%realized .and. enable .and. .not. c_associated(self%light_node)) call build_light(self) if (c_associated(self%light_switch)) & call check_status(vkf_switch_set(self%light_switch, merge(1_c_int, 0_c_int, enable))) end subroutine set_light_source_enabled