diff --git a/crates/bevy_math/src/shape_sampling.rs b/crates/bevy_math/src/shape_sampling.rs index 1479aa7209df0..3728034413bef 100644 --- a/crates/bevy_math/src/shape_sampling.rs +++ b/crates/bevy_math/src/shape_sampling.rs @@ -159,9 +159,9 @@ fn sample_triangle_interior( if u + v > 1. { let u1 = 1. - v; let v1 = 1. - u; - ab * u1 + ac * v1 + a + (ab * u1 + ac * v1) } else { - ab * u + ac * v + a + (ab * u + ac * v) } }