pub struct FrameParams<'a> {
pub elapsed: f32,
pub fov_y_radians: f32,
pub near: f32,
pub far: f32,
pub cam_pos: [f32; 3],
pub text_calls: &'a [TextDrawCall],
pub lines: &'a [LineVertex],
pub world_hidden: bool,
pub view_mode: ViewMode,
pub show: ShowFlags,
}Expand description
Per-frame inputs for RenderBackend::draw_frame. world_hidden is set when
an opaque menu backdrop covers the scene: the backend skips every world pass
and presents only the overlay (text_calls) over a cleared target.
Fields§
§elapsed: f32Seconds since the world started, for time-driven effects.
fov_y_radians: f32Vertical field of view in radians.
near: f32Near clip distance in world units.
far: f32Far clip distance in world units.
cam_pos: [f32; 3]World-space camera position.
text_calls: &'a [TextDrawCall]Overlay draw calls for this frame.
lines: &'a [LineVertex]Expanded line ribbons (lines::build_vertices) for this frame’s camera,
drawn depth-tested into the scene after the world passes. Empty on any
frame that submits no lines, which also drops the pass from the graph.
true when an opaque menu backdrop covers the scene.
view_mode: ViewModeViewport view mode + show flags for the frame (ViewOverrides when the
editor publishes one, defaults otherwise). Backends run their seeded
graph inputs through render_graph::apply_view and steer the composite
by the mode.
show: ShowFlagsFeature passes to run this frame.
Trait Implementations§
Source§impl<'a> Clone for FrameParams<'a>
impl<'a> Clone for FrameParams<'a>
Source§fn clone(&self) -> FrameParams<'a>
fn clone(&self) -> FrameParams<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more