View Single Post
Old 01 December 2020, 18:33   #1
kokoko3k
Registered User
 
Join Date: Nov 2020
Location: italy
Posts: 23
Made a new shader for FS-uae.

First post here, so Hello everyone!.

In latest days i've been playing with glsl and shaders.
I never used them before, nor i wrote any shader before, so probably i did some mistakes/unoptimized code, did something already existed, whatever, i don't know.

Anyway, by inspecting other's people code, i came up with a shader that looks good to me; also is very configurable,and i think it is a nice toy to play with.

It has support for several features:
* non linear scanlines on original coordinates
* non linear screenlines on screen coordinates
* custom rgb masks with(out) offset
* glowing,haloing,blooming
* gamma correction
* saturation correction
* alternate blanking (like uae's feature)
* play nicely with FS-UAE's autoscale function

Also, it is important to know that it is meant to be used with:
* line doubling enabled: line_doubling = 1
* low resolution disabled: low_resolution = 0

I've set the default values to match my real arcade crt monitor as much as i can on a 1080p, you may have much better results tuning it for 4k, of course .

Please, share your impressions, ideas, improvements...


Latest version is 1.42, not (yet) made any screenshot, you can download it here:
http://wpage.unina.it/aorefice/share...koko-aio-1.42/
Screenshots for 1.42 here:
http://wpage.unina.it/aorefice/share...2/screenshots/

In 1.42, files are named with the scheme:
Code:
FeatureX-1.FeatureY-0-....-FeatureZ-string.shader
where 1 and 0 means that that feature is present or not, "string" describes how that feature has been configured.
Eg:
Code:
scanlines-0.glow-1.vmask-full.darklines-offset.halo-1.bloom-0.shader
...means that you get no scanlines, full vertical mask, darklines painted with an offset, halo and not bloom.


The following reflects an outdated version, see screenshots for 1.42 instead.
Complete gallery for version v1.35:http://wpage.unina.it/aorefice/share...koko-aio-1.35/

Some Examples:


Have fun!

Last edited by kokoko3k; 13 October 2021 at 11:48.
kokoko3k is offline  
 
Page generated in 0.04684 seconds with 11 queries