pub struct LodView {
pub eye: [f32; 3],
pub forward: [f32; 3],
pub viewport_half_diagonal: f32,
pub near_distance: f32,
pub focal_pixels: f32,
pub maximum_error_pixels: f32,
}Expand description
Explicit centered-perspective error budget; caller supplies matching frustum and camera provenance.
Fields§
§eye: [f32; 3]Camera position in the same coordinates as object bounds.
forward: [f32; 3]Camera forward axis; validate normalizes a finite nonzero vector.
viewport_half_diagonal: f32Conservative physical viewport half-diagonal upper bound, in 0.5..=32768 pixels.
near_distance: f32Near-camera guard distance, in 0.0001..=1000000.
focal_pixels: f32Vertical focal length in physical pixels, in 0.5..=32768.
maximum_error_pixels: f32Maximum projected deviation, in 0.125..=1024 physical pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LodView
impl RefUnwindSafe for LodView
impl Send for LodView
impl Sync for LodView
impl Unpin for LodView
impl UnsafeUnpin for LodView
impl UnwindSafe for LodView
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