mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05:00
Reorganized 6 branches into bios/Manufacturer/Console/. Scrapers for RetroArch, Batocera, Recalbox, and libretro core-info. Platform-aware verification replicating native logic per platform. Pack generation with dedup, alias resolution, variant support. CI/CD: weekly auto-scrape, auto-release, PR validation. Large files (>50MB) stored as GitHub Release assets, auto-fetched at build time.
55 lines
943 B
GLSL
55 lines
943 B
GLSL
void main()
|
|
{
|
|
//Change this number to increase the pixel size.
|
|
float pixelSize = 3.0;
|
|
|
|
float red = 0.0;
|
|
float green = 0.0;
|
|
float blue = 0.0;
|
|
|
|
float2 pos = floor(GetCoordinates() * GetResolution() / pixelSize) * pixelSize * GetInvResolution();
|
|
|
|
float4 c0 = SampleLocation(pos);
|
|
|
|
if (c0.r < 0.1)
|
|
red = 0.1;
|
|
else if (c0.r < 0.20)
|
|
red = 0.20;
|
|
else if (c0.r < 0.40)
|
|
red = 0.40;
|
|
else if (c0.r < 0.60)
|
|
red = 0.60;
|
|
else if (c0.r < 0.80)
|
|
red = 0.80;
|
|
else
|
|
red = 1.0;
|
|
|
|
if (c0.b < 0.1)
|
|
blue = 0.1;
|
|
else if (c0.b < 0.20)
|
|
blue = 0.20;
|
|
else if (c0.b < 0.40)
|
|
blue = 0.40;
|
|
else if (c0.b < 0.60)
|
|
blue = 0.60;
|
|
else if (c0.b < 0.80)
|
|
blue = 0.80;
|
|
else
|
|
blue = 1.0;
|
|
|
|
if (c0.g < 0.1)
|
|
green = 0.1;
|
|
else if (c0.g < 0.20)
|
|
green = 0.20;
|
|
else if (c0.g < 0.40)
|
|
green = 0.40;
|
|
else if (c0.g < 0.60)
|
|
green = 0.60;
|
|
else if (c0.g < 0.80)
|
|
green = 0.80;
|
|
else
|
|
green = 1.0;
|
|
|
|
SetOutput(float4(red, green, blue, c0.a));
|
|
}
|