Remove extra intensity calculation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user