1 /* This is free and unencumbered software released into the public
2 domain. To the extent possible under law, the author of this file
3 waives all copyright and related or neighboring rights to it.
6 precision mediump float;
8 attribute vec3 position;
9 attribute vec2 texCoord;
14 uniform mat4 projection;
22 gl_Position = projection * view * model * vec4(position, 1.0);
23 vec2 n = vec2(texCoord.x, cut);
24 float p = 1.0 - range * abs(snoise(n));
25 fColor = vec4(p * color.rgb, color.a);