From 31514dd7054a31d0cd0a171c5388c3a9260c2b7d Mon Sep 17 00:00:00 2001 From: Martin Opat Date: Mon, 30 Dec 2024 10:43:52 +0100 Subject: [PATCH] Renamed what are actually points to use Point3 instead of Vec3 --- src/consts.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/consts.h b/src/consts.h index 9880416..ba3b389 100644 --- a/src/consts.h +++ b/src/consts.h @@ -31,10 +31,10 @@ const double specularStrength = 0.5; const int shininess = 32; // Camera and Light -Vec3 cameraPos(-0.7, -1.0, -2.0); -Vec3 cameraDir(0.4, 0.6, 1.0); -Vec3 cameraUp(0.0, 1.0, 0.0); +Point3 cameraPos(-0.7, -1.0, -2.0); +Vec3 cameraDir = Vec3(0.4, 0.6, 1.0).normalize(); +Vec3 cameraUp = Vec3(0.0, 1.0, 0.0).normalize(); float fov = 60.0f * (M_PI / 180.0f); -Vec3 lightPos(1.5, 2.0, -1.0); +Point3 lightPos(1.5, 2.0, -1.0); #endif // CONSTS_H \ No newline at end of file