From e1cc0e9a9d191bcd3a634be46fd3555d430b07a8 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: feat(skeleton): draw pass aware of position --- stockton-render/src/camera.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'stockton-render/src/camera.rs') diff --git a/stockton-render/src/camera.rs b/stockton-render/src/camera.rs index dcc9d93..6abc183 100644 --- a/stockton-render/src/camera.rs +++ b/stockton-render/src/camera.rs @@ -7,7 +7,10 @@ use stockton_types::{ Vector3, }; -use stockton_skeleton::{draw_passes::DrawPass, Renderer}; +use stockton_skeleton::{ + draw_passes::{DrawPass, Singular}, + Renderer, +}; fn euler_to_direction(euler: &Vector3) -> Vector3 { let pitch = euler.x; @@ -23,7 +26,7 @@ fn euler_to_direction(euler: &Vector3) -> Vector3 { #[system(for_each)] #[filter(maybe_changed::() | maybe_changed::())] -pub fn calc_vp_matrix( +pub fn calc_vp_matrix + 'static>( transform: &Transform, settings: &CameraSettings, matrix: &mut CameraVPMatrix, -- cgit v1.2.3