pub struct FrameView {
pub extent: (u32, u32),
pub view_projection: Mat4,
pub eye: Vec3,
pub perspective: bool,
}Expand description
The camera one frame’s froxels are built around.
The four values arrive together because they are one camera’s, and a clustering pass handed a view projection from one frame and an eye from another builds froxels no fragment is ever in — a failure that looks like lights switching off at tile boundaries.
Fields§
§extent: (u32, u32)The viewport, in pixels.
view_projection: Mat4World → clip, the same matrix the frame draws with.
eye: Vec3World-space eye position.
perspective: boolWhether the projection is a perspective one — see
Grid::for_frame, which is where the two are told apart.
Trait Implementations§
impl Copy for FrameView
impl StructuralPartialEq for FrameView
Auto Trait Implementations§
impl Freeze for FrameView
impl RefUnwindSafe for FrameView
impl Send for FrameView
impl Sync for FrameView
impl Unpin for FrameView
impl UnsafeUnpin for FrameView
impl UnwindSafe for FrameView
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