aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/camera.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commita82e16c92a026b2fbe3a40a21d7e690242e32ba6 (patch)
tree2b56390408a5ad858d638b5e2a26dd670dbe6bc7 /stockton-render/src/draw/camera.rs
parent439219e74090c7158f8dbc33fed4107a5eb7c003 (diff)
WIP refactor(render): add draw passes
Diffstat (limited to 'stockton-render/src/draw/camera.rs')
-rw-r--r--stockton-render/src/draw/camera.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/stockton-render/src/draw/camera.rs b/stockton-render/src/draw/camera.rs
index d39febd..a9d10f4 100644
--- a/stockton-render/src/draw/camera.rs
+++ b/stockton-render/src/draw/camera.rs
@@ -4,7 +4,7 @@ use legion::maybe_changed;
use nalgebra_glm::look_at_lh;
use nalgebra_glm::perspective_lh_zo;
-use stockton_levels::prelude::{MinBspFeatures, VulkanSystem};
+use stockton_levels::prelude::MinRenderFeatures;
use crate::Renderer;
use stockton_types::components::{CameraSettings, Transform};
@@ -24,10 +24,10 @@ fn euler_to_direction(euler: &Vector3) -> Vector3 {
#[system(for_each)]
#[filter(maybe_changed::<Transform>() | maybe_changed::<CameraSettings>())]
-pub fn calc_vp_matrix<M: 'static + MinBspFeatures<VulkanSystem>>(
+pub fn calc_vp_matrix<M: 'static + MinRenderFeatures>(
transform: &Transform,
settings: &CameraSettings,
- #[resource] renderer: &mut Renderer<'static, M>,
+ #[resource] renderer: &mut Renderer<M>,
) {
let ratio = renderer.context.target_chain.properties.extent.width as f32
/ renderer.context.target_chain.properties.extent.height as f32;