From 835a478d017359be8691ed6455629320e341a047 Mon Sep 17 00:00:00 2001 From: Ryo Kawaguchi Date: Tue, 25 Jul 2023 02:41:30 +0900 Subject: [PATCH] Add comments to Camera struct fields. --- crates/viewer/src/camera.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/viewer/src/camera.rs b/crates/viewer/src/camera.rs index 30631e59..fcaa3d55 100644 --- a/crates/viewer/src/camera.rs +++ b/crates/viewer/src/camera.rs @@ -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, }