source:
data/branches/Shader_HS18/programs/GLSL120/GlassFP.glsl
@
12412
Last change on this file since 12412 was 12115, checked in by wiesep, 6 years ago | |
---|---|
File size: 207 bytes |
Rev | Line | |
---|---|---|
[12115] | 1 | uniform sampler2D RT; |
2 | uniform sampler2D NormalMap; | |
3 | varying vec2 oUv0; | |
4 | ||
5 | void main() | |
6 | { | |
7 | vec4 normal = 2.0 * (texture2D(NormalMap, oUv0 * 2.5) - 0.5); | |
8 | ||
9 | gl_FragColor = texture2D(RT, oUv0 + normal.xy * 0.05); | |
10 | } |
Note: See TracBrowser
for help on using the repository browser.