pub struct WorldRenderSettings {Show 31 fields
pub enable_shadows: bool,
pub shadow_distance: f32,
pub shadow_cascades: u8,
pub enable_ao: bool,
pub ao_radius: f32,
pub ao_samples: u32,
pub enable_fog: bool,
pub fog_start: f32,
pub fog_end: f32,
pub fog_color: Vec3,
pub enable_bloom: bool,
pub bloom_threshold: f32,
pub bloom_intensity: f32,
pub exposure: f32,
pub gamma: f32,
pub tonemap_mode: TonemapMode,
pub enable_ssao: bool,
pub enable_motion_blur: bool,
pub motion_blur_amount: f32,
pub enable_vignette: bool,
pub vignette_strength: f32,
pub enable_chromatic: bool,
pub chromatic_amount: f32,
pub water_tessellation: u8,
pub terrain_max_lod: u8,
pub foliage_distance: f32,
pub foliage_density_scale: f32,
pub sky_samples: u32,
pub render_wireframe: bool,
pub render_colliders: bool,
pub render_navmesh: bool,
}Fields§
§enable_shadows: bool§shadow_distance: f32§shadow_cascades: u8§enable_ao: bool§ao_radius: f32§ao_samples: u32§enable_fog: bool§fog_start: f32§fog_end: f32§fog_color: Vec3§enable_bloom: bool§bloom_threshold: f32§bloom_intensity: f32§exposure: f32§gamma: f32§tonemap_mode: TonemapMode§enable_ssao: bool§enable_motion_blur: bool§motion_blur_amount: f32§enable_vignette: bool§vignette_strength: f32§enable_chromatic: bool§chromatic_amount: f32§water_tessellation: u8§terrain_max_lod: u8§foliage_distance: f32§foliage_density_scale: f32§sky_samples: u32§render_wireframe: bool§render_colliders: boolTrait Implementations§
Source§impl Clone for WorldRenderSettings
impl Clone for WorldRenderSettings
Source§impl Debug for WorldRenderSettings
impl Debug for WorldRenderSettings
Auto Trait Implementations§
impl Freeze for WorldRenderSettings
impl RefUnwindSafe for WorldRenderSettings
impl Send for WorldRenderSettings
impl Sync for WorldRenderSettings
impl Unpin for WorldRenderSettings
impl UnsafeUnpin for WorldRenderSettings
impl UnwindSafe for WorldRenderSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.