The light source's node: a point light at the origin, under a switch.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout) | :: | self |
subroutine build_light(self) class(ReferenceFrame), intent(inout) :: self self%light_node = vkf_light_create() if (.not. c_associated(self%light_node)) return self%light_switch = vkf_switch_create() call check_status(vkf_node_add_child(self%light_switch, self%light_node)) call check_status(vkf_node_add_child(self%node_, self%light_switch)) call apply_light(self) end subroutine build_light