mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
confirmed: subtiling works on any atlas size
This commit is contained in:
@@ -45,7 +45,7 @@ class CreateTileAtlas {
|
|||||||
val H_SUBTILE = 136
|
val H_SUBTILE = 136
|
||||||
}
|
}
|
||||||
|
|
||||||
var MAX_TEX_SIZE = App.getConfigInt("atlastexsize").coerceIn(1024, App.glInfo.GL_MAX_TEXTURE_SIZE); private set
|
var MAX_TEX_SIZE = 1024; private set
|
||||||
var TILES_IN_X = MAX_TEX_SIZE / TILE_SIZE; private set
|
var TILES_IN_X = MAX_TEX_SIZE / TILE_SIZE; private set
|
||||||
var SUBTILES_IN_X = MAX_TEX_SIZE / SUBTILE_SIZE; private set
|
var SUBTILES_IN_X = MAX_TEX_SIZE / SUBTILE_SIZE; private set
|
||||||
|
|
||||||
@@ -246,7 +246,7 @@ class CreateTileAtlas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// test print
|
// test print
|
||||||
// PixmapIO2.writeTGA(Gdx.files.absolute("${App.defaultDir}/atlas.tga"), atlas, false)
|
PixmapIO2.writeTGA(Gdx.files.absolute("${App.defaultDir}/atlas.tga"), atlas, false)
|
||||||
// PixmapIO2.writeTGA(Gdx.files.absolute("${AppLoader.defaultDir}/atlasGlow.tga"), atlasGlow, false)
|
// PixmapIO2.writeTGA(Gdx.files.absolute("${AppLoader.defaultDir}/atlasGlow.tga"), atlasGlow, false)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user