mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-29 19:01:31 +11:00
7783ff6ad6
This shader tries to reproduce a CRT-like output without replicating a RGB patterns. It has the following features: - allows fractional scaling - uses texture AA shader and subpixel scaling for evenly placed sharp pixels - has a horizontal blur function which mimics bad signal quality of some systems (megadrive, psx) - has a vertical blur function which mimics n64 vertical software blur - adds some noise to mimic restless CRT colors - has a curvator function - looks good with resolutions <= 1080p - has modest system requirements - adds a slotmask to the output. https://forums.libretro.com/t/gizmo-slotmask-crt-shader/41594
23 lines
568 B
Plaintext
23 lines
568 B
Plaintext
shaders = "1"
|
|
shader0 = "shaders/gizmo-slotmask-crt.slang"
|
|
filter_linear0 = "true"
|
|
wrap_mode0 = "clamp_to_border"
|
|
mipmap_input0 = "false"
|
|
alias0 = ""
|
|
float_framebuffer0 = "false"
|
|
srgb_framebuffer0 = "false"
|
|
|
|
parameters = "BRIGHTNESS;HORIZONTAL_BLUR;VERTICAL_BLUR;BLUR_OFFSET;BGR_LCD_PATTERN;SHRINK;SNR;COLOUR_BLEEDING;GRID;SLOTMASK"
|
|
CURVATURE_X = "0.15"
|
|
CURVATURE_Y = "0.15"
|
|
BRIGHTNESS = "0.5"
|
|
HORIZONTAL_BLUR = "1.0"
|
|
VERTICAL_BLUR = "0.0"
|
|
BLUR_OFFSET = "0.65"
|
|
BGR_LCD_PATTERN = "0.0"
|
|
SHRINK = "0.0"
|
|
SNR = "2.6"
|
|
COLOUR_BLEEDING = "0.15"
|
|
GRID = "0.30"
|
|
SLOTMASK = "1.0"
|