pub struct RenderState {
pub show_surface: bool,
pub show_grid: bool,
pub opacity: f32,
pub vertex_opts: VertexRenderOptions,
pub edge_opts: EdgeRenderOptions,
}Expand description
Aggregated rendering state that can be applied atomically.
Use FrameCtx::set_render_state() to update all rendering options in one call,
or modulate individual fields directly via frame.render_state.field.
Clipping planes (near/far) are not part of this struct; use
FrameCtx::set_clip_planes() to set them explicitly.
Fields§
§show_surface: boolWhether to render the surface (solid PBR mesh).
show_grid: boolWhether to render the ground/axis grid.
opacity: f32Global surface opacity (0.0 = fully transparent, 1.0 = fully opaque).
vertex_opts: VertexRenderOptionsVertex (point) overlay options.
edge_opts: EdgeRenderOptionsEdge (wireframe) overlay options.
Trait Implementations§
Source§impl Clone for RenderState
impl Clone for RenderState
Source§fn clone(&self) -> RenderState
fn clone(&self) -> RenderState
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 RenderState
Source§impl Debug for RenderState
impl Debug for RenderState
Auto Trait Implementations§
impl Freeze for RenderState
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnsafeUnpin for RenderState
impl UnwindSafe for RenderState
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