diff --git a/ggdt/src/graphics/bitmap/triangles.rs b/ggdt/src/graphics/bitmap/triangles.rs index 6fdafe9..da7e7b0 100644 --- a/ggdt/src/graphics/bitmap/triangles.rs +++ b/ggdt/src/graphics/bitmap/triangles.rs @@ -57,7 +57,7 @@ pub fn per_pixel_triangle_2d( for pixel in row_pixels.iter_mut() { // note that for a counter-clockwise vertex winding order with the direction of Y+ going down instead // of up, we need to test for *negative* area when checking if we're inside the triangle - if w0 < 0.0 && w1 < 0.0 && w2 < 0.0 { + if w0 <= 0.0 && w1 <= 0.0 && w2 <= 0.0 { pixel_fn(pixel, w0, w1, w2); }