mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-26 01:11:32 +11:00
Update crt-easymode-halation.slang
These 2 factors cancel out, I think.
This commit is contained in:
parent
5d7574566f
commit
1ca0462818
|
@ -204,8 +204,8 @@ void main()
|
||||||
float mask_dither = fract(mask_config.x) * 10.0;
|
float mask_dither = fract(mask_config.x) * 10.0;
|
||||||
|
|
||||||
vec2 mod_fac = floor(
|
vec2 mod_fac = floor(
|
||||||
vTexCoord * global.OutputSize.xy * global.SourceSize.xy /
|
vTexCoord * global.OutputSize.xy /
|
||||||
(global.SourceSize.xy * vec2(param.MASK_SIZE, mask_dot_height * param.MASK_SIZE))
|
(vec2(param.MASK_SIZE, mask_dot_height * param.MASK_SIZE))
|
||||||
);
|
);
|
||||||
|
|
||||||
int dot_no = int(mod((mod_fac.x + mod(mod_fac.y, 2.0) * mask_stagger) / mask_dot_width, mask_colors));
|
int dot_no = int(mod((mod_fac.x + mod(mod_fac.y, 2.0) * mask_stagger) / mask_dot_width, mask_colors));
|
||||||
|
|
Loading…
Reference in a new issue