source:
data/branches/Shader_HS18/programs/GLSL120/GrayScale.glsl
@
12202
Last change on this file since 12202 was 12115, checked in by wiesep, 6 years ago | |
---|---|
File size: 176 bytes |
Line | |
---|---|
1 | uniform sampler2D RT; |
2 | varying vec2 oUv0; |
3 | |
4 | void 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.