source:
data/branches/Shader_HS18/programs/GLSL120/GlassFP.glsl
@
12373
| Last change on this file since 12373 was 12115, checked in by wiesep, 7 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.










