dolphin/Data/Sys/Shaders/grayscale2.glsl

8 lines
204 B
Plaintext
Raw Normal View History

2013-03-07 16:46:55 +00:00
void main()
2011-01-31 00:08:06 +00:00
{
float4 c0 = Sample();
2013-03-07 16:46:55 +00:00
// Info: http://www.oreillynet.com/cs/user/view/cs_msg/8691
float avg = (0.222 * c0.r) + (0.707 * c0.g) + (0.071 * c0.b);
SetOutput(float4(avg, avg, avg, c0.a));
2011-01-31 00:08:06 +00:00
}