source:
data/branches/Shader_HS18/programs/Example/GLSL150/GlassFP.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 246 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | uniform sampler2D RT; |
4 | uniform sampler2D NormalMap; |
5 | |
6 | in vec2 oUv0; |
7 | out vec4 fragColour; |
8 | |
9 | void main() |
10 | { |
11 | vec4 normal = 2.0 * (texture(NormalMap, oUv0 * 2.5) - 0.5); |
12 | |
13 | fragColour = texture(RT, oUv0 + normal.xy * 0.05); |
14 | } |
Note: See TracBrowser
for help on using the repository browser.