Skip to content

Commit

Permalink
camera: add scale component to camera entities
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Jun 22, 2020
1 parent 06b2b06 commit 031a0c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_render/src/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct PerspectiveCameraEntity {
pub transform: Transform,
pub translation: Translation,
pub rotation: Rotation,
pub scale: Scale,
}

impl Default for PerspectiveCameraEntity {
Expand All @@ -38,6 +39,7 @@ impl Default for PerspectiveCameraEntity {
transform: Default::default(),
translation: Default::default(),
rotation: Default::default(),
scale: Default::default(),
}
}
}
Expand All @@ -49,6 +51,7 @@ pub struct OrthographicCameraEntity {
pub transform: Transform,
pub translation: Translation,
pub rotation: Rotation,
pub scale: Scale,
}

impl OrthographicCameraEntity {
Expand All @@ -65,6 +68,7 @@ impl OrthographicCameraEntity {
transform: Default::default(),
translation: Default::default(),
rotation: Default::default(),
scale: Default::default(),
}
}
}
Expand All @@ -80,6 +84,7 @@ impl Default for OrthographicCameraEntity {
transform: Default::default(),
translation: Default::default(),
rotation: Default::default(),
scale: Default::default(),
}
}
}

0 comments on commit 031a0c6

Please sign in to comment.