Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL120/GrayScale.glsl @ 12323

Last change on this file since 12323 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 176 bytes
Line 
1uniform sampler2D RT;
2varying vec2 oUv0;
3
4void main()
5{
6    vec3 greyscale = vec3(dot(texture2D(RT, oUv0).rgb, vec3(0.3, 0.59, 0.11)));
7        gl_FragColor = vec4(greyscale, 1.0);
8}
Note: See TracBrowser for help on using the repository browser.