From c4214fedbeb3e117eaf9e78f47be64530cf0afd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Wed, 4 Aug 2021 23:14:08 +0100 Subject: [PATCH] Don't use derivatives in vertex shader --- assets/voxygen/shaders/include/lod.glsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/voxygen/shaders/include/lod.glsl b/assets/voxygen/shaders/include/lod.glsl index 74f73849cf..e40da75ea8 100644 --- a/assets/voxygen/shaders/include/lod.glsl +++ b/assets/voxygen/shaders/include/lod.glsl @@ -105,10 +105,10 @@ vec2 textureBicubic16(texture2D tex, sampler sampl, vec2 texCoords) { /* // Correct for map rotaton. offset.zw = 1.0 - offset.zw; */ - vec4 sample0_v4 = texture(sampler2D(tex, sampl), offset.xz); - vec4 sample1_v4 = texture(sampler2D(tex, sampl), offset.yz); - vec4 sample2_v4 = texture(sampler2D(tex, sampl), offset.xw); - vec4 sample3_v4 = texture(sampler2D(tex, sampl), offset.yw); + vec4 sample0_v4 = textureLod(sampler2D(tex, sampl), offset.xz, 0); + vec4 sample1_v4 = textureLod(sampler2D(tex, sampl), offset.yz, 0); + vec4 sample2_v4 = textureLod(sampler2D(tex, sampl), offset.xw, 0); + vec4 sample3_v4 = textureLod(sampler2D(tex, sampl), offset.yw, 0); vec2 sample0 = sample0_v4.rb / 256.0 + sample0_v4.ga; vec2 sample1 = sample1_v4.rb / 256.0 + sample1_v4.ga; vec2 sample2 = sample2_v4.rb / 256.0 + sample2_v4.ga;