From aac95baa7fee133de2250a7f30e88ac9bceafcdd Mon Sep 17 00:00:00 2001 From: Pierre-Eliot Jourdan Date: Thu, 14 Apr 2022 10:03:19 +0000 Subject: [PATCH] MAJ --- Lighting.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lighting.java b/Lighting.java index 05347c0..0f95aad 100644 --- a/Lighting.java +++ b/Lighting.java @@ -81,10 +81,11 @@ public class Lighting { h.normalize(); /* diffuse contribution : A COMPLETER */ - double Id = kd * ... + double Id = light.params[3]; + double Id = kd *Id* Math.cos(normal,l); /* specular contribution : A COMPLETER */ - double Is = ks * ... + double Is = ks * Id * Math.cos(h,normal)^2; I += Id + Is; } catch (InstantiationException ex) {