Give the light source's node its colors (if it has been made).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout) | :: | self |
subroutine apply_light(self) class(ReferenceFrame), intent(inout) :: self if (.not. c_associated(self%light_node)) return call check_status(vkf_light_set(self%light_node, real(self%light_ambient_, c_float), real(self%light_diffuse_, c_float), & real(self%light_specular_, c_float), [0.0_c_double, 0.0_c_double, 0.0_c_double, 1.0_c_double])) end subroutine apply_light