Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/GrassAmbientFp.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: 408 bytes
Line 
1#version 100
2
3precision mediump int;
4precision mediump float;
5
6uniform sampler2D diffuseMap;
7
8varying vec4 oUv0;
9varying vec4 oColour;
10
11/// grass_vp ambient
12void main()
13{       
14    vec4 texColor = texture2D(diffuseMap, oUv0.xy);
15    // Do manual alpha rejection because it is not built into OpenGL ES 2
16    if (texColor.a < 0.588)
17    {
18        discard;
19    }
20
21    gl_FragColor = vec4(oColour.rgb, texColor.a);
22}
Note: See TracBrowser for help on using the repository browser.