1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 18:54:05 +02:00

fix triangulation order

This commit is contained in:
Robin Appelman 2023-12-21 15:57:13 +01:00
commit cdf52722f8
2 changed files with 3 additions and 3 deletions

View file

@ -94,9 +94,9 @@ impl<'a> Handle<'a, DisplacementInfo> {
vertices[index(x, y)],
vertices[index(x + 1, y)],
vertices[index(x, y + 1)],
vertices[index(x, y + 1)],
vertices[index(x + 1, y + 1)],
vertices[index(x + 1, y)],
vertices[index(x + 1, y + 1)],
vertices[index(x, y + 1)],
]
})
}

View file

@ -68,7 +68,7 @@ impl<'a> Handle<'a, Face> {
let mut b = vertices.next().expect("face with <3 points");
vertices.map(move |c| {
let points = [a.position, b.position, c.position];
let points = [c.position, b.position, a.position];
b = c;
points
})