Skip to content

Commit

Permalink
Minor shader optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ledoge authored Jan 6, 2022
1 parent 6517c3c commit 7579f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwm_lut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7579f63

Please sign in to comment.