mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -04:00
fix atlas wrong size calculation
This commit is contained in:
parent
ab1882019a
commit
0701df836f
@ -36,7 +36,7 @@ class RawAtlasElement(
|
||||
|
||||
fun load(textures: AtlasTextureManager): AtlasElement {
|
||||
val (texture, uvStart, uvEnd) = textures.add(texture, assets, start, end, resolution)
|
||||
val size = (end + 1) - start
|
||||
val size = end - start
|
||||
|
||||
|
||||
return AtlasElement(texture, uvStart, uvEnd, size, slots, areas)
|
||||
|
@ -40,7 +40,7 @@ class AtlasTextureManager(private val context: RenderContext) {
|
||||
|
||||
val realStart = start * scale
|
||||
val realEnd = end * scale
|
||||
val size = (realEnd + 1) - realStart
|
||||
val size = realEnd - realStart
|
||||
|
||||
val target = request(size)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user