mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +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
|
for (mut camera, local_to_world, _) in
|
||||||
<(Write<Camera>, Read<LocalToWorld>, Read<ActiveCamera>)>::query().iter_mut(world)
|
<(Write<Camera>, Read<LocalToWorld>, Read<ActiveCamera>)>::query().iter_mut(world)
|
||||||
{
|
{
|
||||||
|
// TODO: consider using staging buffer
|
||||||
camera.update(width, height);
|
camera.update(width, height);
|
||||||
let camera_matrix: [[f32; 4]; 4] =
|
let camera_matrix: [[f32; 4]; 4] =
|
||||||
(camera.view_matrix * local_to_world.0).to_cols_array_2d();
|
(camera.view_matrix * local_to_world.0).to_cols_array_2d();
|
||||||
|
|
Loading…
Add table
Reference in a new issue