Skip to content

Commit 05f0987

Browse files
committed
Also swap ao
1 parent c182757 commit 05f0987

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/java/de/bluecolored/bluemap/core/map/hires/ArrayTileModel.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ public ArrayTileModel invertOrientation(int face) {
216216
uv[index + 4 ] = x;
217217
uv[index + 4 + 1] = y;
218218

219+
// swap first and last ao
220+
index = face * FI_AO;
221+
x = ao[index];
222+
ao[index] = ao[index + 2];
223+
ao[index + 2] = x;
224+
219225
return this;
220226
}
221227

0 commit comments

Comments
 (0)