Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/GlassFP.glsles @ 12091

Last change on this file since 12091 was 12091, checked in by wiesep, 5 years ago

Updated programs and adjusted Material to work with GLSL>150

File size: 270 bytes
Line 
1#version 100
2
3precision mediump int;
4precision mediump float;
5
6uniform sampler2D RT;
7uniform sampler2D NormalMap;
8varying vec2 oUv0;
9
10void main()
11{
12        vec4 normal = 2.0 * (texture2D(NormalMap, oUv0 * 2.5) - 0.5);
13
14        gl_FragColor = texture2D(RT, oUv0 + normal.xy * 0.05);
15}
Note: See TracBrowser for help on using the repository browser.