From b96e1de0bd5e00d7bd3c74cf5319a6fb76439c24 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 15 Feb 2024 02:22:09 -0300 Subject: acho que tem sombras, porem tem que arrumar a ordem de renderizacao --- donut.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'donut.h') diff --git a/donut.h b/donut.h index 568ae80..e4e0519 100644 --- a/donut.h +++ b/donut.h @@ -5,6 +5,8 @@ #include #include +#define MAX(a,b) ((a)>(b)?(a):(b)) + #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 640 @@ -26,4 +28,4 @@ point3d rotate_x(point3d p, double a); point3d rotate_y(point3d p, double a); point3d rotate_z(point3d p, double a); -#endif \ No newline at end of file +#endif -- cgit v1.2.3