From 7579f633bc6a3d470c50b3f739ea8dca17c3927a Mon Sep 17 00:00:00 2001 From: ledoge <8040316+ledoge@users.noreply.github.com> Date: Thu, 6 Jan 2022 09:10:29 +0100 Subject: [PATCH] Minor shader optimization --- dwm_lut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm_lut.c b/dwm_lut.c index 2833606..f06b945 100644 --- a/dwm_lut.c +++ b/dwm_lut.c @@ -79,7 +79,7 @@ char shaders[] = STRINGIFY(( static float c3 = 2392 / 128.; float3 SampleLut(float3 index) { - float3 tex = index / lutSize + 0.5 / lutSize; + float3 tex = (index + 0.5) / lutSize; return lutTex.Sample(smp, tex).rgb; }