Give the renderer's window light its colors and position (if open).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(WindowProxy), | intent(inout) | :: | self |
subroutine apply_window_light(self) type(WindowProxy), intent(inout) :: self type(c_ptr) :: light if (.not. c_associated(self%viewer_)) return light = vkf_viewer_light(self%viewer_) if (.not. c_associated(light)) return if (vkf_light_set(light, real(self%light_ambient_, c_float), real(self%light_diffuse_, c_float), & real(self%light_specular_, c_float), real(self%light_position_, c_double)) /= 0) & write(*, '(a)') 'vkframes: could not set the window light' end subroutine apply_window_light