From 47a0c0317cc774c19b78582bec9b5b09d56f569a Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: feat(render): draw passes --- stockton-types/src/components/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'stockton-types/src/components/mod.rs') diff --git a/stockton-types/src/components/mod.rs b/stockton-types/src/components/mod.rs index a90f5e8..421cf9c 100644 --- a/stockton-types/src/components/mod.rs +++ b/stockton-types/src/components/mod.rs @@ -59,3 +59,17 @@ pub struct CameraSettings { /// Far clipping plane (world units) pub far: f32, } + +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct CameraVPMatrix { + /// The camera's VP Matrix + pub vp_matrix: Mat4, +} + +impl Default for CameraVPMatrix { + fn default() -> Self { + CameraVPMatrix { + vp_matrix: Mat4::identity(), + } + } +} -- cgit v1.2.3