Skip to content

Commit

Permalink
Counter-clockwise vertex order for sprites (front facing)
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Jul 25, 2024
1 parent ec6bccb commit 86a4bec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class JomlExtensions {
if (clazz == Vector2f[]) {
return new Vector2f[]{
new Vector2f(self.minX, self.minY),
new Vector2f(self.minX, self.maxY),
new Vector2f(self.maxX, self.minY),
new Vector2f(self.maxX, self.maxY),
new Vector2f(self.maxX, self.minY)
new Vector2f(self.minX, self.maxY)
}
}
throw new IllegalArgumentException("Cannot convert Rectanglef to type ${clazz}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class OpenGLRenderer implements GraphicsRenderer {
surface as Vector2f[],
Colour.WHITE,
textureUVs as Vector2f[],
[0, 1, 3, 1, 2, 3] as int[],
[0, 1, 2, 0, 2, 3] as int[],
false
)
}
Expand Down

0 comments on commit 86a4bec

Please sign in to comment.