Adjust the fixUV translation constant

Now that the spritesheet size is 1024×1024, it has to use a different
denominator.
This commit is contained in:
Fingercomp 2023-07-09 05:25:30 +07:00
parent d56697225b
commit 3553aa7e6e
No known key found for this signature in database
GPG Key ID: BBC71CEE45D86E37

View File

@ -329,7 +329,7 @@ class Graphics(private var scalingFactor: Float) extends Logging with Resource {
val uvTransform = Transform2D.translate(spriteRect.x, spriteRect.y) >> val uvTransform = Transform2D.translate(spriteRect.x, spriteRect.y) >>
(if (fixUV) (if (fixUV)
Transform2D.scale(spriteRect.w - 0.25f / 512, spriteRect.h - 0.25f / 512) Transform2D.scale(spriteRect.w - 0.25f / 1024, spriteRect.h - 0.25f / 1024)
else else
Transform2D.scale(spriteRect.w, spriteRect.h)) Transform2D.scale(spriteRect.w, spriteRect.h))