#[repr(C)]pub struct GlobalLightingParams {Show 31 fields
pub ambient_light_color: [f32; 4],
pub ambient_light_intensity: f32,
pub quadratic_falloff: u32,
pub lighting_enabled: u32,
pub shadow_strength: f32,
pub fog_color: [f32; 4],
pub film_grain_strength: f32,
pub noise_strength: f32,
pub light_blending_mode: u32,
pub global_light_intensity: f32,
pub global_light_color: [f32; 4],
pub vignette_color: [f32; 4],
pub vignette_intensity: f32,
pub vignette_radius: f32,
pub shake_amount: f32,
pub time: f32,
pub color_balance: [f32; 4],
pub global_brightness: f32,
pub debug_visualization: u32,
pub gamma_correction: f32,
pub use_lut: u32,
pub exposure: f32,
pub gamma: f32,
pub pre_saturation: f32,
pub post_saturation: f32,
pub resolution: [f32; 2],
pub chromatic_aberration: f32,
pub bloom_threshold: f32,
pub bloom_lerp: f32,
pub bloom_gamma: f32,
pub _padding: [f32; 2],
}
Fields§
§ambient_light_color: [f32; 4]
§ambient_light_intensity: f32
§quadratic_falloff: u32
§lighting_enabled: u32
§shadow_strength: f32
§fog_color: [f32; 4]
§film_grain_strength: f32
§noise_strength: f32
§light_blending_mode: u32
§global_light_intensity: f32
§global_light_color: [f32; 4]
§vignette_color: [f32; 4]
§vignette_intensity: f32
§vignette_radius: f32
§shake_amount: f32
§time: f32
§color_balance: [f32; 4]
§global_brightness: f32
§debug_visualization: u32
§gamma_correction: f32
§use_lut: u32
§exposure: f32
Exposure value (EV) offset, measured in stops.
gamma: f32
Non-linear luminance adjustment applied before tonemapping. y = pow(x, gamma)
pre_saturation: f32
Saturation adjustment applied before tonemapping. Values below 1.0 desaturate, with a value of 0.0 resulting in a grayscale image with luminance defined by ITU-R BT.709. Values above 1.0 increase saturation.
post_saturation: f32
Saturation adjustment applied after tonemapping. Values below 1.0 desaturate, with a value of 0.0 resulting in a grayscale image with luminance defined by ITU-R BT.709 Values above 1.0 increase saturation.
resolution: [f32; 2]
§chromatic_aberration: f32
§bloom_threshold: f32
§bloom_lerp: f32
§bloom_gamma: f32
§_padding: [f32; 2]
Trait Implementations§
Source§impl Clone for GlobalLightingParams
impl Clone for GlobalLightingParams
Source§fn clone(&self) -> GlobalLightingParams
fn clone(&self) -> GlobalLightingParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobalLightingParams
impl Debug for GlobalLightingParams
Source§impl Default for GlobalLightingParams
impl Default for GlobalLightingParams
impl Copy for GlobalLightingParams
impl Pod for GlobalLightingParams
Auto Trait Implementations§
impl Freeze for GlobalLightingParams
impl RefUnwindSafe for GlobalLightingParams
impl Send for GlobalLightingParams
impl Sync for GlobalLightingParams
impl Unpin for GlobalLightingParams
impl UnwindSafe for GlobalLightingParams
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
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.