Files
Matt Akins a42d4c8c06 Add pixel_transparency shader for GBC (#551)
* Add pixel_transparency shader for GBC/GBA transparency simulation

Converts bright/white pixels to transparent areas showing a procedural
paper background, simulating the look of original Game Boy screens
without backlights.

Features:
- Multiple transparency modes (white only, bright pixels, all pixels)
- Procedural paper grain background with tint options
- Drop shadows with configurable blur
- Color harshness filter (Gambatte-style)

Includes base preset and 5 LCD shader combinations:
- lcd1x, lcd3x, zfast_lcd, lcd-grid-v2, authentic_gbc_fast

Ported from Slang version with GLSL ES compatibility fixes.

* Add scale_type0 = viewport to LCD shader presets

Adds missing scale_type0 = viewport to 15 LCD/grid shader presets
to match slang-shaders equivalents. This enables proper shader
appending behavior when combining LCD shaders with other effects
like pixel_transparency.

Affected presets:
- lcd1x, lcd3x, zfast-lcd, lcd-grid
- lcd1x_nds, lcd1x_psp
- simpletex_lcd variants (9 files)

* Add BACKGROUND_INTENSITY parameter to simpletex_lcd shaders

Ports the BACKGROUND_INTENSITY parameter from slang-shaders to all
simpletex_lcd GLSL shader variants. This parameter controls the
visibility of the paper background texture (0.0 = none, 1.0 = full).

Also adds pixel_transparency-simpletex_lcd.glslp combo preset with
background intensity disabled.
2026-01-17 08:23:11 -06:00
..