Skip to content

Commit

Permalink
Add comments to Camera struct fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
skywhale committed Jul 24, 2023
1 parent 393b13a commit 835a478
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/viewer/src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ enum Projection {
pub struct Camera {
projection: Projection,
aspect_ratio: f32,
// Zoom factor used for orthographic projection.
zoom_factor: f32,
// Position of the camera.
position: Vec3,
// The upward vector of the camera, determining its orientation.
upward: Vec3,
// The look-at target, in the center of the view.
target: Vec3,
}

Expand Down

0 comments on commit 835a478

Please sign in to comment.