diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:23 +0100 |
commit | e1cc0e9a9d191bcd3a634be46fd3555d430b07a8 (patch) | |
tree | 7f984fbb55c935797217d105e93f3f415f35d226 /stockton-render/src/camera.rs | |
parent | 0353181306702c40ad0fe482b5c2b159b46794a4 (diff) |
feat(skeleton): draw pass aware of position
Diffstat (limited to 'stockton-render/src/camera.rs')
-rw-r--r-- | stockton-render/src/camera.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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::<Transform>() | maybe_changed::<CameraSettings>())] -pub fn calc_vp_matrix<DP: DrawPass + 'static>( +pub fn calc_vp_matrix<DP: DrawPass<Singular> + 'static>( transform: &Transform, settings: &CameraSettings, matrix: &mut CameraVPMatrix, |