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 | |
---|
3 | precision mediump int; |
---|
4 | precision mediump float; |
---|
5 | |
---|
6 | uniform sampler2D diffuseMap; |
---|
7 | |
---|
8 | varying vec4 oUv0; |
---|
9 | varying vec4 oColour; |
---|
10 | |
---|
11 | /// grass_vp ambient |
---|
12 | void 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.