diff options
Diffstat (limited to 'src/main/java/makamys/neodymium')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/MeshQuad.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/MeshQuad.java b/src/main/java/makamys/neodymium/renderer/MeshQuad.java index db8bd25..1d2c196 100644 --- a/src/main/java/makamys/neodymium/renderer/MeshQuad.java +++ b/src/main/java/makamys/neodymium/renderer/MeshQuad.java @@ -167,8 +167,8 @@ public class MeshQuad { float v = vs[vi]; if(Config.shortUV) { - out.writeShort((short)(u * 32768)); - out.writeShort((short)(v * 32768)); + out.writeShort((short)(Math.round(u * 32768f))); + out.writeShort((short)(Math.round(v * 32768f))); } else { out.writeFloat(u); out.writeFloat(v); |