Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef GL_ES
- precision mediump float;
- #endif
- varying vec2 v_texCoord;
- varying vec2 v_pos;
- uniform sampler2D u_noise;
- uniform sampler2D u_texture;
- void main() {
- vec4 grassColor = texture2D(u_texture, v_texCoord);
- vec4 noiseColor = texture2D(u_noise, v_pos);
- vec4 color = vec4(noiseColor.r*0.2+grassColor.r/1.2, grassColor.g, grassColor.b, 1.0);
- color.a = grassColor.a;
- gl_FragColor = color;
- if (gl_FragColor.a < 0.7) discard;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement