dolphin/Data/Sys/Shaders/firewater.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
304 B
Plaintext
Raw Normal View History

2013-03-07 11:51:57 -07:00
void main()
{
float4 c0 = Sample();
float4 c1 = SampleOffset(int2( 1, 1));
float4 c2 = SampleOffset(int2(-1, -1));
2014-05-20 21:49:49 -06:00
float red = c0.r;
2014-05-21 12:55:45 -06:00
float green = c0.g;
2014-05-20 21:49:49 -06:00
float blue = c0.b;
2014-05-21 12:55:45 -06:00
float alpha = c0.a;
2011-01-30 17:08:06 -07:00
2014-05-20 21:49:49 -06:00
red = c0.r - c1.b;
blue = c0.b - c2.r + (c0.g - c0.r);
SetOutput(float4(red, 0.0, blue, alpha));
2014-05-20 21:49:49 -06:00
}