From caa8c416a9537e54bc21e7f6d64b1701bd382123 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 18 Aug 2024 21:08:59 +0100 Subject: [PATCH] Remove extra intensity calculation --- src/shader/shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shader/shaders.c b/src/shader/shaders.c index 8ebc811..a867c49 100644 --- a/src/shader/shaders.c +++ b/src/shader/shaders.c @@ -80,7 +80,7 @@ internal FragmentResult phong_shader_fragment(void *shader, V3f normal, V2f tex_coords, const Colour *colour, const Model *model) { - f32 intensity = get_intensity(&normal); + f32 intensity; if (model->normal) { u64 nm_x = tex_coords.u * model->normal->width; u64 nm_y = (1.0f - tex_coords.v) * model->normal->height;