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