mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-17 07:27:43 +11:00
Merge pull request #34 from rz5/patch-2
Update crt-easymode-halation.slang
This commit is contained in:
commit
b036db49ed
1 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ float get_scanline_weight(float pos, float beam, float strength)
|
||||||
{
|
{
|
||||||
float weight = 1.0 - pow(cos(pos * 2.0 * PI) * 0.5 + 0.5, beam);
|
float weight = 1.0 - pow(cos(pos * 2.0 * PI) * 0.5 + 0.5, beam);
|
||||||
|
|
||||||
return weight * strength * 2.0 + (1.0 - strength);;
|
return weight * strength * 2.0 + (1.0 - strength);
|
||||||
}
|
}
|
||||||
|
|
||||||
vec2 curve_coordinate(vec2 co, float curvature)
|
vec2 curve_coordinate(vec2 co, float curvature)
|
||||||
|
@ -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…
Add table
Reference in a new issue