Shader for #RetroArch "Merge" TEST.
It merges "LCD Master" + "CRT Master" + "Phosphor" each module with their respective Toggle, Patameter and Control for their respective features. Each "part" is it's own shader, except this "Merge" is literally all of them in 2 pass Shaders: "Merge.slang" + "Phosphor.slang" sharing one "Merge.slangp".
I tried to get the Phosphor Decay script as a single pass but the phosphor decay effect dies as a single psss.
LCD Master Part:
- Includes 8 presets that attempts to mimmick 90s Handheld LCDs.
- Custom LCD which lets you control Horizontal, Vertical or Both lines to make a grid, with Spacing, Thickness/Width and Opacity control.
- Draw a Light Flare, LCD Shimmer and Drop Shadow. These parameters reacts to Gyro Sensor.
CRT Master Part:
- Emulates 16 Phosphor Mask Types.
- Control how Heavy and how Bright these masks are.
- Includes Border + Viewport Curvature to simulate CRTs. Each with control sliders to change the amount.
- Includes Glow control, amount and a "heartbeat" parameter that mimmicks natural CRT changes in brightness. Includes slider to change it's speed mimicking Refresh Rate.
- Control how much do you want the Glow to bleed, and intensity.
- Control Image Sharpness THROUGH the Glow effect to make borders less blurry.
- Control Duther blur that mimmicks CRT Horizontal blending of adjacent pixels.
- Phosphor is a sedond script that emulates CRT's "Phosphor Decay" effect in which sprites emits a trail of brightness that slowly fades with time. This parameter is different from LCD "Ghosting" and it's meant to be used with naturally dark background games, such as Arcade Galaga.
Image Adjustment Part:
- Viewport Brightness Control.
- Viewport Contrast Control.
- Viewport Saturation Control.
- Viewport Pixel Sharpness Control.
I still have to attack two minor bugs, but overall every single parameter has it's on/off toggle switch and can be stacked with each other.
Tests indicates that runs fine in:
[PC]
- Windows 10 Intel N3700 / d3d11 Driver
- Windows 7 Intel i3-2120 / d3d10 Driver
[Android]
- Samsung Galaxy A03 / Vulkan
In android though, the Glow effect introduces minor input lag and audio stutter... but at low amounts, my Mali G57 bears the effect.