Struct ark_api_ffi::render_v1::Environment
source · [−]#[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. See ark-api for more documentation.
Fields
sun_dir: [f32; 3]sun_rgb: [f32; 3]ground_rgb: [f32; 3]sky_rgb: [f32; 3]horizon_rgb: [f32; 3]fog_density: f32fog_height: f32fog_height_falloff: f32fog_start: f32fog_rgba: [f32; 4]Trait Implementations
sourceimpl Clone for Environment
impl Clone for Environment
sourcefn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Copy for Environment
impl Pod for Environment
Auto Trait Implementations
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
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. Read more
sourcefn 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.