source:
data/branches/Shader_HS18/programs/Example/GLSL150/GrayScale.glsl
@
12091
| Last change on this file since 12091 was 12083, checked in by wiesep, 7 years ago | |
|---|---|
| File size: 213 bytes | |
| Line | |
|---|---|
| 1 | #version 150 |
| 2 | |
| 3 | uniform sampler2D RT; |
| 4 | in vec2 oUv0; |
| 5 | out vec4 fragColour; |
| 6 | |
| 7 | void 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.










