mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
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:
parent
d56697225b
commit
3553aa7e6e
@ -329,7 +329,7 @@ class Graphics(private var scalingFactor: Float) extends Logging with Resource {
|
||||
|
||||
val uvTransform = Transform2D.translate(spriteRect.x, spriteRect.y) >>
|
||||
(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
|
||||
Transform2D.scale(spriteRect.w, spriteRect.h))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user