Remove extra intensity calculation
This commit is contained in:
1 parent
690eb3d317
commit
caa8c416a9
1 file changed
+1
-1
@@ -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