Last change
on this file since 12091 was
12091,
checked in by wiesep, 6 years ago
|
Updated programs and adjusted Material to work with GLSL>150
|
File size:
353 bytes
|
Line | |
---|
1 | #version 100 |
---|
2 | |
---|
3 | precision mediump int; |
---|
4 | precision mediump float; |
---|
5 | |
---|
6 | uniform sampler2D RT; |
---|
7 | varying vec2 uv0; |
---|
8 | |
---|
9 | void main() |
---|
10 | { |
---|
11 | vec4 Color; |
---|
12 | Color.a = 1.0; |
---|
13 | Color.rgb = vec3(0.5); |
---|
14 | Color -= texture2D( RT, uv0 - 0.001)*2.0; |
---|
15 | Color += texture2D( RT, uv0 + 0.001)*2.0; |
---|
16 | Color.rgb = vec3((Color.r+Color.g+Color.b)/3.0); |
---|
17 | gl_FragColor = Color; |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.