pub struct FrameScalars {
pub elapsed: f32,
pub fov_y_radians: f32,
pub near: f32,
pub far: f32,
pub view: [[f32; 4]; 4],
pub cam_pos: [f32; 3],
pub view_mode: ViewMode,
pub show: ShowFlags,
pub world_hidden: bool,
pub menu_active: bool,
}Expand description
Camera and frame-wide flags for one frame’s draw.
Fields§
§elapsed: f32Seconds since the world started.
fov_y_radians: f32Vertical field of view in radians.
near: f32Near clip distance in world units.
far: f32Far clip distance in world units.
view: [[f32; 4]; 4]View matrix the frame draws with (rebased when a chunk world streams).
cam_pos: [f32; 3]Camera position in the space the frame renders in.
view_mode: ViewModeWhat the composite presents this frame.
show: ShowFlagsFeature passes to run this frame.
true when an opaque menu backdrop covers the scene.
true while any world-pausing screen is open.
Trait Implementations§
Source§impl Clone for FrameScalars
impl Clone for FrameScalars
Source§fn clone(&self) -> FrameScalars
fn clone(&self) -> FrameScalars
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameScalars
Source§impl Debug for FrameScalars
impl Debug for FrameScalars
Auto Trait Implementations§
impl Freeze for FrameScalars
impl RefUnwindSafe for FrameScalars
impl Send for FrameScalars
impl Sync for FrameScalars
impl Unpin for FrameScalars
impl UnsafeUnpin for FrameScalars
impl UnwindSafe for FrameScalars
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