pub struct LightingEnvironment {Show 15 fields
pub zenith: Rgba8,
pub horizon: Rgba8,
pub ground: Rgba8,
pub rim_color: Rgba8,
pub key_color: Rgba8,
pub fill_color: Rgba8,
pub key_direction: Vec3,
pub fill_direction: Vec3,
pub diffuse_strength: f32,
pub specular_strength: f32,
pub rim_strength: f32,
pub key_strength: f32,
pub fill_strength: f32,
pub key_angular_radius: f32,
pub shadow_strength: f32,
}Expand description
Scene-linear lighting sampled by molecular materials.
Fields§
§zenith: Rgba8Upper-hemisphere environment colour in display sRGB.
horizon: Rgba8Grazing environment colour in display sRGB.
ground: Rgba8Lower-hemisphere environment colour in display sRGB.
rim_color: Rgba8Grazing-angle separation colour in display sRGB.
key_color: Rgba8Broad key-light colour in display sRGB.
fill_color: Rgba8Broad fill-light colour in display sRGB.
key_direction: Vec3View-space direction toward the key light.
fill_direction: Vec3View-space direction toward the fill light.
diffuse_strength: f32Diffuse environment multiplier in [0, 4].
specular_strength: f32Reflected environment multiplier in [0, 4].
rim_strength: f32Grazing rim multiplier in [0, 2].
key_strength: f32Key-light multiplier in [0, 8].
fill_strength: f32Fill-light multiplier in [0, 8].
key_angular_radius: f32Apparent key-light angular radius in [0, 0.5]; controls penumbra.
shadow_strength: f32Direct-light shadow attenuation in [0, 1].
Implementations§
Source§impl LightingEnvironment
impl LightingEnvironment
Sourcepub const fn documentary() -> Self
pub const fn documentary() -> Self
Soft documentary rig with stronger shape separation.
Trait Implementations§
Source§impl Clone for LightingEnvironment
impl Clone for LightingEnvironment
impl Copy for LightingEnvironment
Source§impl Debug for LightingEnvironment
impl Debug for LightingEnvironment
Source§impl Default for LightingEnvironment
impl Default for LightingEnvironment
Source§impl<'de> Deserialize<'de> for LightingEnvironment
impl<'de> Deserialize<'de> for LightingEnvironment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LightingEnvironment
impl PartialEq for LightingEnvironment
Source§impl Serialize for LightingEnvironment
impl Serialize for LightingEnvironment
impl StructuralPartialEq for LightingEnvironment
Auto Trait Implementations§
impl Freeze for LightingEnvironment
impl RefUnwindSafe for LightingEnvironment
impl Send for LightingEnvironment
impl Sync for LightingEnvironment
impl Unpin for LightingEnvironment
impl UnsafeUnpin for LightingEnvironment
impl UnwindSafe for LightingEnvironment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more