mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
fix triangulation order
This commit is contained in:
parent
dde4ec2a83
commit
cdf52722f8
2 changed files with 3 additions and 3 deletions
|
|
@ -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)],
|
||||
]
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue