☰
Debian Codegraph
@
2609+dfsg-1
2606.a+dfsg-1
/
/
Data
/
Sys
/
Shaders
/
posterize2.glsl
☽
☼
Data/Sys/Shaders/posterize2.glsl
code
plain
raw
GPL-2+
2003-2026, Dolphin Emulator Project
debian/copyright
1
float bound(float color)
2
{
3
if (color < 0.35)
4
{
5
if (color < 0.25)
6
return color;
7
8
return 0.5;
9
}
10
11
return 1.0;
12
}
13
14
void main()
15
{
16
float4 c0 = Sample();
17
SetOutput(float4(bound(c0.r), bound(c0.g), bound(c0.b), c0.a));
18
}