mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
shader updates and new one added
This commit is contained in:
parent
2ef33c9158
commit
6e4d5102b5
@ -6,11 +6,13 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
float red = 0.0;
|
||||
float blue = 0.0;
|
||||
|
||||
if (c0.r > 0.25 && c0.b > 0.25)
|
||||
if (c0.r > 0.15 && c0.b > 0.15)
|
||||
{
|
||||
blue = c0.b;
|
||||
red = c0.r;
|
||||
blue = 0.5;
|
||||
red = 0.5;
|
||||
}
|
||||
|
||||
ocol0 = float4(red, c0.g, blue, 1.0);
|
||||
float green = max(c0.r + c0.b, c0.g);
|
||||
|
||||
ocol0 = float4(red, green, blue, 1.0);
|
||||
}
|
8
brighten.txt
Normal file
8
brighten.txt
Normal file
@ -0,0 +1,8 @@
|
||||
uniform samplerRECT samp0 : register(s0);
|
||||
|
||||
void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
{
|
||||
float4 c0 = texRECT(samp0, uv0).rgba;
|
||||
c0 += c0 * 2;
|
||||
ocol0 = float4(c0.r, c0.g, c0.b, c0.a);
|
||||
}
|
@ -6,13 +6,14 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
float red = 0.0;
|
||||
float green = 0.0;
|
||||
|
||||
if (c0.r < 0.50 || c0.b > 0.5)
|
||||
if (c0.r < 0.35 || c0.b > 0.35)
|
||||
{
|
||||
green = c0.g + (c0.b / 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
red = c0.r + (c0.b / 2);
|
||||
//red = 1 - c0.r + (c0.b / 2);
|
||||
red = c0.r + 0.4;
|
||||
}
|
||||
|
||||
ocol0 = float4(red, green, 0.0, 1.0);
|
||||
|
@ -9,13 +9,13 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
|
||||
if (c0.r < 0.50 || c0.b > 0.5)
|
||||
{
|
||||
blue = c0.r + (c0.b / 2);
|
||||
red = c0.g + (c0.b / 2);
|
||||
blue = c0.r;
|
||||
red = c0.g;
|
||||
}
|
||||
else
|
||||
{
|
||||
blue = c0.r + (c0.b / 2);
|
||||
green = c0.r + (c0.b / 2);
|
||||
blue = c0.r;
|
||||
green = c0.r;
|
||||
}
|
||||
|
||||
ocol0 = float4(red, green, blue, 1.0);
|
||||
|
@ -3,15 +3,7 @@ uniform samplerRECT samp0 : register(s0);
|
||||
void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
{
|
||||
float4 c0 = texRECT(samp0, uv0).rgba;
|
||||
float4 c1 = texRECT(samp0, uv0 + float2(3,3)).rgba;
|
||||
float red = c0.r;
|
||||
float green = c0.g;
|
||||
float blue = c0.b;
|
||||
float alpha = c0.a;
|
||||
float4 c1 = texRECT(samp0, uv0 + float2(5,5)).rgba;
|
||||
|
||||
red = c0.r - c1.r;
|
||||
green = c0.g - c1.g;
|
||||
blue = c0.b - c1.b;
|
||||
|
||||
ocol0 = float4(red, green, blue, alpha);
|
||||
ocol0 = c0 - c1;
|
||||
}
|
@ -6,14 +6,14 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
float red = 0.0;
|
||||
float blue = 0.0;
|
||||
|
||||
if (c0.r < 0.50 || c0.b > 0.5)
|
||||
if (c0.r < 0.35 || c0.b > 0.5)
|
||||
{
|
||||
red = c0.g + (c0.b / 2);
|
||||
red = c0.g + c0.b;
|
||||
}
|
||||
else
|
||||
{
|
||||
red = c0.g + (c0.b / 2);
|
||||
blue = c0.r + (c0.b / 2);
|
||||
red = c0.g + c0.b;
|
||||
blue = c0.r + c0.b;
|
||||
}
|
||||
|
||||
ocol0 = float4(red, 0.0, blue, 1.0);
|
||||
|
10
spookey2.txt
10
spookey2.txt
@ -7,15 +7,15 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
float green = 0.0;
|
||||
float blue = 0.0;
|
||||
|
||||
if (c0.r < 0.50 || c0.b > 0.5)
|
||||
if (c0.r < 0.35 || c0.b > 0.5)
|
||||
{
|
||||
red = c0.g + (c0.b / 2);
|
||||
red = c0.g + c0.b;
|
||||
}
|
||||
else
|
||||
{
|
||||
red = c0.g + (c0.b / 2);
|
||||
blue = c0.r + (c0.b / 2);
|
||||
green = c0.r + (c0.b / 2);
|
||||
red = c0.g + c0.b;
|
||||
blue = c0.r + c0.b;
|
||||
green = c0.r + c0.b;
|
||||
}
|
||||
|
||||
ocol0 = float4(red, green, blue, 1.0);
|
||||
|
10
toxic.txt
10
toxic.txt
@ -7,15 +7,15 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
|
||||
float green = 0.0;
|
||||
float blue = 0.0;
|
||||
|
||||
if (c0.r < 0.50 || c0.b > 0.5)
|
||||
if (c0.r < 0.3 || c0.b > 0.5)
|
||||
{
|
||||
blue = c0.r + (c0.b / 2);
|
||||
red = c0.g + (c0.b / 2);
|
||||
blue = c0.r + c0.b;
|
||||
red = c0.g + c0.b / 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
red = c0.g + (c0.b / 2);
|
||||
green = c0.r + (c0.b / 2);
|
||||
red = c0.g + c0.b;
|
||||
green = c0.r + c0.b;
|
||||
}
|
||||
|
||||
ocol0 = float4(red, green, blue, 1.0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user