source:
data/branches/Shader_HS18/programs/Example/GLSL150/EmbossedFp.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 333 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | uniform sampler2D RT; |
4 | in vec2 oUv0; |
5 | out vec4 fragColour; |
6 | |
7 | void main() |
8 | { |
9 | vec4 Color; |
10 | Color.a = 1.0; |
11 | Color.rgb = vec3(0.5); |
12 | Color -= texture( RT, oUv0 - 0.001)*2.0; |
13 | Color += texture( RT, oUv0 + 0.001)*2.0; |
14 | Color.rgb = vec3((Color.r+Color.g+Color.b)/3.0); |
15 | fragColour = Color; |
16 | } |
Note: See TracBrowser
for help on using the repository browser.