Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL120/GlassFP.glsl @ 12302

Last change on this file since 12302 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 207 bytes
Line 
1uniform sampler2D RT;
2uniform sampler2D NormalMap;
3varying vec2 oUv0;
4
5void 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.