Intersect instad of union in pyramid

This commit is contained in:
IsseW 2021-11-17 14:32:07 +01:00
parent 07da6a9271
commit 4b6f3ddeea

View File

@ -404,17 +404,17 @@ impl Painter {
inset,
dir: 0,
})
.union(self.prim(Primitive::Ramp {
.intersect(self.prim(Primitive::Ramp {
aabb,
inset,
dir: 1,
}))
.union(self.prim(Primitive::Ramp {
.intersect(self.prim(Primitive::Ramp {
aabb,
inset,
dir: 2,
}))
.union(self.prim(Primitive::Ramp {
.intersect(self.prim(Primitive::Ramp {
aabb,
inset,
dir: 3,