mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
remember!
This commit is contained in:
parent
7c2eb63a47
commit
14efda15bf
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ impl ResourceProvider for CameraResourceProvider {
|
|||
for (mut camera, local_to_world, _) in
|
||||
<(Write<Camera>, Read<LocalToWorld>, Read<ActiveCamera>)>::query().iter_mut(world)
|
||||
{
|
||||
// TODO: consider using staging buffer
|
||||
camera.update(width, height);
|
||||
let camera_matrix: [[f32; 4]; 4] =
|
||||
(camera.view_matrix * local_to_world.0).to_cols_array_2d();
|
||||
|
|
Loading…
Reference in a new issue