From b0079eaa628a1f2fd99014cd12e6baac17f4d17a Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 23 Feb 2020 18:30:21 +0100 Subject: Added phong light model and fixed sphere intersect --- vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vector.h') diff --git a/vector.h b/vector.h index 2fcb648..e794f05 100644 --- a/vector.h +++ b/vector.h @@ -1,8 +1,8 @@ #ifndef VECTOR_H #define VECTOR_H -#define COORD_T float -#define ZERO_APROX 1e-5 +#define COORD_T double +#define ZERO_APROX 1e-6 typedef struct { COORD_T x; -- cgit v1.2.3