pub struct EnvironmentOptions {
pub lighting_model: LightingModel,
pub irradiance_map_size: u32,
pub irradiance_sample_count: u32,
pub prefilter_map_size: u32,
pub prefilter_map_max_mip_levels: u32,
pub prefilter_sample_count: u32,
pub brdf_map_size: u32,
pub brdf_sample_count: u32,
}Expand description
Options used when generating an Environment, ie. when precalculating lighting from an environment map.
Fields§
§lighting_model: LightingModelThe lighting model used for the precalculation.
irradiance_map_size: u32The texture size of the irradiance map.
irradiance_sample_count: u32The number of samples used when generating the irradiance map.
prefilter_map_size: u32The texture size of the prefilter map.
prefilter_map_max_mip_levels: u32The number of mip levels used when generating the prefilter map.
prefilter_sample_count: u32The number of samples used when generating the prefilter map.
brdf_map_size: u32The texture size of the BRDF map.
brdf_sample_count: u32The number of samples used when generating the BRDF map.
Trait Implementations§
Source§impl Clone for EnvironmentOptions
impl Clone for EnvironmentOptions
Source§fn clone(&self) -> EnvironmentOptions
fn clone(&self) -> EnvironmentOptions
Returns a duplicate 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 EnvironmentOptions
impl Debug for EnvironmentOptions
Source§impl Default for EnvironmentOptions
impl Default for EnvironmentOptions
Source§impl PartialEq for EnvironmentOptions
impl PartialEq for EnvironmentOptions
impl Copy for EnvironmentOptions
impl StructuralPartialEq for EnvironmentOptions
Auto Trait Implementations§
impl Freeze for EnvironmentOptions
impl RefUnwindSafe for EnvironmentOptions
impl Send for EnvironmentOptions
impl Sync for EnvironmentOptions
impl Unpin for EnvironmentOptions
impl UnsafeUnpin for EnvironmentOptions
impl UnwindSafe for EnvironmentOptions
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