Add crt-consumer and crt-cyclon. Update others. (#3223)

- Add crt-consumer.glsl;
- Add crt-cyclon.fx and its bezel.png texture;
- Fix crt-newpixie.fx Frame adjust to game's aspect ratio;
- Update others shaders to the new functions to get uniform values.
This commit is contained in:
Hyllian
2024-06-15 11:02:30 -03:00
committed by GitHub
parent 54097fc14e
commit 2a90a88055
9 changed files with 1344 additions and 6 deletions

View File

@ -256,7 +256,7 @@ void main()
float scan_weight = 1.0 - pow(cos(vTexCoord.y * 2.0 * PI * SourceSize.y) * 0.5 + 0.5, scan_beam) * GetOption(SCANLINE_STRENGTH);
float mask = 1.0 - GetOption(MASK_STRENGTH);
vec2 mod_fac = floor(vTexCoord * GetResolution().xy * SourceSize.xy / (SourceSize.xy * vec2(GetOption(MASK_SIZE), GetOption(MASK_DOT_HEIGHT) * GetOption(MASK_SIZE))));
vec2 mod_fac = floor(vTexCoord * GetWindowSize().xy * SourceSize.xy / (SourceSize.xy * vec2(GetOption(MASK_SIZE), GetOption(MASK_DOT_HEIGHT) * GetOption(MASK_SIZE))));
int dot_no = int(mod((mod_fac.x + mod(mod_fac.y, 2.0) * GetOption(MASK_STAGGER)) / GetOption(MASK_DOT_WIDTH), 3.0));
vec3 mask_weight;