Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/mrttestfp_scene.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: 466 bytes
Line 
1#version 100
2precision mediump int;
3precision mediump float;
4
5uniform sampler2D tex0;
6varying vec4 uv0;
7
8void main()                   
9{
10        vec4 baseColour = texture2D(tex0, uv0.xy);
11
12        gl_FragData[0] = baseColour;
13
14//      gl_FragData[1] = baseColour * vec4(1, 0, 0, 1);
15
16//      float abs = (baseColour.r + baseColour.g + baseColour.b) * 0.333;
17//      gl_FragData[2] = vec4(abs, abs, abs, 1);
18       
19//      float invabs = 1.0 - abs;
20//      gl_FragData[3] = vec4(invabs, invabs, invabs, 1);
21}
Note: See TracBrowser for help on using the repository browser.