Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL150/GrayScale.glsl @ 12091

Last change on this file since 12091 was 12083, checked in by wiesep, 6 years ago

Reorganised shader programs

File size: 213 bytes
RevLine 
[12083]1#version 150
2
3uniform sampler2D RT;
4in vec2 oUv0;
5out vec4 fragColour;
6
7void main()
8{
9    vec3 greyscale = vec3(dot(texture(RT, oUv0).rgb, vec3(0.3, 0.59, 0.11)));
10        fragColour = vec4(greyscale, 1.0);
11}
Note: See TracBrowser for help on using the repository browser.