Skip to content

Commit c182757

Browse files
committed
Flip the correct uv ?!
1 parent 90dff21 commit c182757

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,17 @@ public ArrayTileModel invertOrientation(int face) {
205205
position[index + 6 + 1] = y;
206206
position[index + 6 + 2] = z;
207207

208+
// swap first and last uvs
209+
index = face * FI_UV;
210+
x = uv[index ];
211+
y = uv[index + 1];
212+
213+
uv[index ] = uv[index + 4 ];
214+
uv[index + 1] = uv[index + 4 + 1];
215+
216+
uv[index + 4 ] = x;
217+
uv[index + 4 + 1] = y;
218+
208219
return this;
209220
}
210221

0 commit comments

Comments
 (0)