From 07c988f5a0ce2f7c60b864dd5ee64860d7cea457 Mon Sep 17 00:00:00 2001 From: makamys Date: Thu, 23 Jun 2022 10:26:38 +0200 Subject: Make UV shortification disableable --- src/main/resources/shaders/chunk.frag | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/resources/shaders') diff --git a/src/main/resources/shaders/chunk.frag b/src/main/resources/shaders/chunk.frag index 2e729b1..1922f03 100644 --- a/src/main/resources/shaders/chunk.frag +++ b/src/main/resources/shaders/chunk.frag @@ -27,7 +27,12 @@ void main() goodTexCoord = ProvokingTexCoord.xy + (((TexCoord.xy - ProvokingTexCoord.xy) / MQPos.zw) * vec2(wrappedU, wrappedV)); } #endif - vec4 texColor = texture(atlas, goodTexCoord / 16384.0); + + vec4 texColor = texture(atlas, goodTexCoord +#ifdef SHORT_UV + / 16384.0 +#endif + ); vec4 colorMult = Color/256.0; -- cgit