Struct three_d::renderer::effect::FogEffect [−][src]
pub struct FogEffect {
pub color: Vec3,
pub density: f32,
pub animation: f32,
// some fields omitted
}
Expand description
An effect that simulates fog, ie. the entire screen gets hazy white when objects are far away.
Fields
color: Vec3
density: f32
animation: f32
Implementations
pub fn apply(
&self,
camera: &Camera,
depth_texture: &DepthTargetTexture2D,
time: f32
) -> ThreeDResult<()>
Auto Trait Implementations
impl !RefUnwindSafe for FogEffect
impl !UnwindSafe for FogEffect
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more