The light source's ambient, diffuse and specular colors ([r, g, b], 0 to 1; defaults 0.05, 0.8 and 0.05 gray).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | rgb(3) |
ambient color [r, g, b] (0 to 1; default 0.05 gray) |
subroutine set_light_ambient(self, rgb) class(ReferenceFrame), intent(inout) :: self real(wp), intent(in) :: rgb(3) !! ambient color [r, g, b] (0 to 1; default 0.05 gray) self%light_ambient_ = rgb call apply_light(self) end subroutine set_light_ambient