Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/EmbossedFp.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: 353 bytes
Line 
1#version 100
2
3precision mediump int;
4precision mediump float;
5
6uniform sampler2D RT;
7varying vec2 uv0;
8
9void main()
10{
11    vec4 Color;
12    Color.a = 1.0;
13    Color.rgb = vec3(0.5);
14    Color -= texture2D( RT, uv0 - 0.001)*2.0;
15    Color += texture2D( RT, uv0 + 0.001)*2.0;
16    Color.rgb = vec3((Color.r+Color.g+Color.b)/3.0);
17    gl_FragColor = Color;
18}
Note: See TracBrowser for help on using the repository browser.