Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Reorganised shader programs

File size: 246 bytes
Line 
1#version 150
2
3uniform sampler2D RT;
4uniform sampler2D NormalMap;
5
6in vec2 oUv0;
7out vec4 fragColour;
8
9void 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.