aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-13 23:47:32 +0200
committermakamys <makamys@outlook.com>2022-06-23 12:21:50 +0200
commit83b035c243b3ffeac9d57f7ab6d4cd89c0e25851 (patch)
tree8b200339fffc08aa4a88098881d3f01e385ad18b /src/main/resources
parent466e033c5c2941f8ef71a36cd86ae8d3a77a1d00 (diff)
downloadNeodymium-83b035c243b3ffeac9d57f7ab6d4cd89c0e25851.tar.gz
Neodymium-83b035c243b3ffeac9d57f7ab6d4cd89c0e25851.tar.bz2
Neodymium-83b035c243b3ffeac9d57f7ab6d4cd89c0e25851.zip
Store UV as short
Increases framerate a lil bit.
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/shaders/chunk.frag3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/resources/shaders/chunk.frag b/src/main/resources/shaders/chunk.frag
index 6cc1a07..2e729b1 100644
--- a/src/main/resources/shaders/chunk.frag
+++ b/src/main/resources/shaders/chunk.frag
@@ -27,8 +27,7 @@ void main()
goodTexCoord = ProvokingTexCoord.xy + (((TexCoord.xy - ProvokingTexCoord.xy) / MQPos.zw) * vec2(wrappedU, wrappedV));
}
#endif
-
- vec4 texColor = texture(atlas, goodTexCoord);
+ vec4 texColor = texture(atlas, goodTexCoord / 16384.0);
vec4 colorMult = Color/256.0;