pub struct Atmosphere {
pub tone_map: Option<ToneMap>,
pub fog: Option<Fog>,
pub exposure: Option<Exposure>,
pub volumetric: Option<VolumetricFog>,
pub auto_exposure: Option<AutoExposure>,
}Expand description
Fog and exposure as the source authored them; each None when the source states none (or a lowering has not
established its meaning). A scene-wide fact, kept by every part of a split world as core.environment’s ambient is.
Fields§
§tone_map: Option<ToneMap>The display processing after exposure and bloom, when fully established by a source.
fog: Option<Fog>§exposure: Option<Exposure>§volumetric: Option<VolumetricFog>A froxel-volume fog as the source stores it, in the source’s own units: shown, never drawn (see VolumetricFog).
auto_exposure: Option<AutoExposure>The camera’s exposure as the source’s renderer sets it from the frame it sees (AutoExposure), in place of
exposure, which a source stating this leaves None.
Trait Implementations§
Source§impl Clone for Atmosphere
impl Clone for Atmosphere
Source§impl Debug for Atmosphere
impl Debug for Atmosphere
Source§impl Default for Atmosphere
impl Default for Atmosphere
Source§impl PartialEq for Atmosphere
impl PartialEq for Atmosphere
Source§impl Resource for Atmosphere
impl Resource for Atmosphere
const NAME: &'static str = "core.atmosphere"
const VERSION: u32 = 6
Source§fn verify(&self, _w: &World) -> Result<(), String>
fn verify(&self, _w: &World) -> Result<(), String>
The resource’s own invariants in
w; as Component::verify, run by the pass manager’s verifier.Source§fn references(&self, _out: &mut Vec<Entity>)
fn references(&self, _out: &mut Vec<Entity>)
The entities this resource refers to, appended to
out. A resource holding entity references must declare
every one of them and implement Resource::retain_references.Source§fn retain_references(&mut self, _keep: &dyn Fn(Entity) -> bool)
fn retain_references(&mut self, _keep: &dyn Fn(Entity) -> bool)
Forget every reference to an entity
keep refuses (set it to “none”). The world calls it whenever entities
leave it (World::despawn, World::retain, World::move_components) and on the copy a
World::subset or World::split_off part gets, so a resource never refers to an entity its world lacks.Source§impl Serialize for Atmosphere
impl Serialize for Atmosphere
impl StructuralPartialEq for Atmosphere
Auto Trait Implementations§
impl Forget for Atmosphere
impl Freeze for Atmosphere
impl RefUnwindSafe for Atmosphere
impl Send for Atmosphere
impl Sync for Atmosphere
impl Unpin for Atmosphere
impl UnsafeUnpin for Atmosphere
impl UnwindSafe for Atmosphere
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