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,
pub sky_rot: [[f32; 4]; 3],
pub directional: Option<DirectionalLightSet>,
}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.
sky_rot: [[f32; 4]; 3]Rows of the sky’s inverse rotation, uploaded into every pass that
samples the environment cubemaps (SkyOrientation::sample_rows).
directional: Option<DirectionalLightSet>The directional lights to install before the draw, already carried by
the sky’s rotation. None leaves the backend’s current set alone, which
is every frame of a world whose sky does not turn.
Trait Implementations§
Source§impl Clone for FrameScalars
impl Clone for FrameScalars
Source§fn clone(&self) -> FrameScalars
fn clone(&self) -> FrameScalars
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more