From 097b4c2acf0f03d03cdfc34892ddca36c96dfd11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com>
Date: Thu, 15 Apr 2021 00:32:31 +0200
Subject: [PATCH] cool looks

---
 Skeleton.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Skeleton.cpp b/Skeleton.cpp
index 1f9413c..1e496a6 100644
--- a/Skeleton.cpp
+++ b/Skeleton.cpp
@@ -185,13 +185,12 @@ class Scene {
 	vec3 La;
 public:
 	void build() {
-		vec3 eye = vec3(10, 0, 20), vup = vec3(0, 1, 0), lookat = vec3(0, 0, 0);
+		vec3 eye = vec3( .9, 0, .9), vup = vec3(0, 1, 0), lookat = vec3(0, 0, 0);
 		float fov = 45 * M_PI / 180;
 		camera.set(eye, lookat, vup, fov);
 
 		La = vec3(0.4f, 0.4f, 0.4f);
-		vec3 lightPosition(1, 1, 1), Le(2, 2, 2);
-		lightPosition = objPoints[0];
+		vec3 lightPosition(.5, .5, 0), Le(2, 2, 2);
 		lights.push_back(new Light(lightPosition, Le));
 
 		vec3 kd(0.3f, 0.2f, 0.1f), ks(2, 2, 2);
@@ -237,7 +236,7 @@ public:
             Hit hit = object->intersect(ray);
             if (hit.t > 0)
                 if(hit.t < length(hit.position - ray.start))
-                return true;
+                    return true;
         }
 		return false;
 	}
-- 
GitLab