mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
- further math tweaks
This commit is contained in:
parent
213b33de16
commit
d5f71ad3ce
1 changed files with 5 additions and 5 deletions
|
@ -22,12 +22,12 @@ vec4 ApplyGamma(vec4 c)
|
|||
return vec4(val, c.a);
|
||||
}
|
||||
|
||||
float halfstep = 15./32.;
|
||||
float halfstep = 1./32.;
|
||||
float DitherMatrix[16] = float[](
|
||||
0.0 / 16.0 - halfstep, 8.0 / 16.0 - halfstep, 2.0 / 16.0 - halfstep, 10.0 / 16.0 - halfstep,
|
||||
12.0 / 16.0 - halfstep, 4.0 / 16.0 - halfstep, 14.0 / 16.0 - halfstep, 6.0 / 16.0 - halfstep,
|
||||
3.0 / 16.0 - halfstep, 11.0 / 16.0 - halfstep, 1.0 / 16.0 - halfstep, 9.0 / 16.0 - halfstep,
|
||||
15.0 / 16.0 - halfstep, 7.0 / 16.0 - halfstep, 13.0 / 16.0 - halfstep, 5.0 / 16.0 - halfstep
|
||||
0.0 / 16.0 + halfstep, 8.0 / 16.0 + halfstep, 2.0 / 16.0 + halfstep, 10.0 / 16.0 + halfstep,
|
||||
12.0 / 16.0 + halfstep, 4.0 / 16.0 + halfstep, 14.0 / 16.0 + halfstep, 6.0 / 16.0 + halfstep,
|
||||
3.0 / 16.0 + halfstep, 11.0 / 16.0 + halfstep, 1.0 / 16.0 + halfstep, 9.0 / 16.0 + halfstep,
|
||||
15.0 / 16.0 + halfstep, 7.0 / 16.0 + halfstep, 13.0 / 16.0 + halfstep, 5.0 / 16.0 + halfstep
|
||||
);
|
||||
|
||||
vec4 Dither(vec4 c, float colorscale)
|
||||
|
|
Loading…
Reference in a new issue