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;