#[repr(C)]pub struct Environment {
pub sun_dir: [f32; 3],
pub sun_rgb: [f32; 3],
pub ground_rgb: [f32; 3],
pub sky_rgb: [f32; 3],
pub horizon_rgb: [f32; 3],
pub fog_density: f32,
pub fog_height: f32,
pub fog_height_falloff: f32,
pub fog_start: f32,
pub fog_rgba: [f32; 4],
}
Expand description
Global scene rendering parameters.
Fields§
§sun_dir: [f32; 3]
§sun_rgb: [f32; 3]
§ground_rgb: [f32; 3]
§sky_rgb: [f32; 3]
§horizon_rgb: [f32; 3]
§fog_density: f32
§fog_height: f32
§fog_height_falloff: f32
§fog_start: f32
§fog_rgba: [f32; 4]
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
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 moreimpl Copy for Environment
impl Pod for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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
.