From a1102ee323b9b25258a559d5b84e89734aa34033 Mon Sep 17 00:00:00 2001
From: DBA_3 <yacine.acheroufkebir@gmail.com>
Date: Sun, 12 Jan 2020 12:13:10 +0100
Subject: [PATCH] reflexion

---
 scene.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scene.cpp b/scene.cpp
index 26df48b..42418f9 100644
--- a/scene.cpp
+++ b/scene.cpp
@@ -330,7 +330,12 @@ void Scene::render(int width, int height, int nb_pixel_row, int nb_pixel_col, in
 }
 
 
+/*modifie ray et shine, ray est de taille (ref_max) et shine de taille (ref_max-1) à la fin
+ray doit contenir le rayon camera Pij initiallement
 
+à la fin on rajoute à ray toutes les reflexions et à shines
+les coeff des couleurs c à d
+shine={(1-a1) , a1*(1-a2) , a1*a2*(1-a3) ...}*/
 int Scene::nb_reflected(Ray3f **ray, int nb_shapes, int ref_max,  float* shine){
 
 	bool vide=false;
-- 
GitLab