#[repr(C)]pub struct Environment {
pub points: [f32; 64],
pub shadow_matrix: [f32; 16],
pub shadow_options: [f32; 4],
pub shadow_extra: [f32; 4],
pub shadow_direction: [f32; 4],
pub light_count: u32,
pub shadow_size: u32,
pub pcf_radius: u32,
pub quality: u32,
}Expand description
Shared ABI: 384 bytes, with 16 point-light vec4s, shadow matrix and options, then metadata.
Fields§
§points: [f32; 64]§shadow_matrix: [f32; 16]§shadow_options: [f32; 4]§shadow_extra: [f32; 4]§shadow_direction: [f32; 4]§light_count: u32§shadow_size: u32§pcf_radius: u32§quality: u32Trait 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 moreSource§impl Debug for Environment
impl Debug for Environment
Source§impl Default for Environment
impl Default for Environment
Source§fn default() -> Environment
fn default() -> Environment
Returns the “default value” for a type. Read more
Source§impl PartialEq for Environment
impl PartialEq for Environment
impl Copy for Environment
impl StructuralPartialEq 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