The color of the light. This is divided in 3 fields: ambient, diffuse and specular. See each field for the definition.
For more information, see the amazing tutorial at https://learnopengl.com/Lighting/Colors
Even when it is dark there is usually still some light somewhere in the world (the moon, a distant light) so objects are almost never completely dark. To simulate this we use an ambient lighting constant that always gives the object some color.
This will be merged with the ambient factor of the material of your model.
Diffuse light simulates the directional impact a light object has on an object. This is the most visually significant component of the lighting model. The more a part of an object faces the light source, the brighter it becomes.
This will be merged with the diffuse factor of the material of your model.
Specular light simulates the bright spot of a light that appears on shiny objects. Specular highlights are more inclined to the color of the light than the color of the object.
This will be merged with the specular factor of the material of your model.
impl RefUnwindSafe for LightColor
impl Send for LightColor
impl Sync for LightColor
impl Unpin for LightColor
impl UnwindSafe for LightColor
fn is_size_suitable(size: usize) -> bool[src]
fn indiv_size() -> usize[src]
impl<T> SafeBorrow<T> for T[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
type Error = Infallible
The type returned in the event of a conversion error.