From 43066bb73042f737c22d65a7bd6726faa545f245 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Mon, 26 Aug 2024 18:09:39 +0100 Subject: [PATCH] Remove debug lines --- src/main.c | 6 ------ src/shader/shaders.c | 3 --- src/vec/vec.c | 1 - 3 files changed, 10 deletions(-) diff --git a/src/main.c b/src/main.c index 0ef7864..5df4dda 100644 --- a/src/main.c +++ b/src/main.c @@ -34,9 +34,6 @@ int main(void) { Model obj = load_obj_file(arena, RESOURCE("head.obj"), RESOURCE("head.pnm"), RESOURCE("head_nm.pnm")); - // Model obj = - // load_obj_file(arena, RESOURCE("polygon.obj"), RESOURCE("grid.pnm"), - // NULL); if (IS_INVALID_MODEL(obj)) { return TINY_EXIT_MODEL_LOAD_FAILED; } @@ -45,9 +42,6 @@ int main(void) { .ambient = 0.3f, .diffuse = 1.5f, .specular = 2.0f, - // .ambient = 1.0f, - // .diffuse = 0.0f, - // .specular = 0.0f, .shininess = 1.5f, }; obj.material = material; diff --git a/src/shader/shaders.c b/src/shader/shaders.c index 425fb0a..4f8cc0f 100644 --- a/src/shader/shaders.c +++ b/src/shader/shaders.c @@ -51,9 +51,6 @@ void load_shaders(void) { get_projection_matrix(PROJECTION_TYPE_ORTHOGRAPHIC); M4x4f perspective_projection = get_projection_matrix(PROJECTION_TYPE_PERSPECTIVE); - // M4x4f model_view = mat4x4_identity; - // M4x4f orthographic_projection = mat4x4_identity; - // M4x4f perspective_projection = mat4x4_identity; perspective.model_view = orthographic.model_view = model_view; perspective.projection = perspective_projection; diff --git a/src/vec/vec.c b/src/vec/vec.c index 53fcb1a..5fcaab3 100644 --- a/src/vec/vec.c +++ b/src/vec/vec.c @@ -1,5 +1,4 @@ #include "vec.h" -#include #define DEPTH_MAX 255