Update crt-easymode-halation.slang

These 2 factors cancel out, I think.
This commit is contained in:
rz5 2016-08-11 18:28:34 +01:00 committed by GitHub
parent 5d7574566f
commit 1ca0462818

View file

@ -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));