+++ /dev/null
-/* This is free and unencumbered software released into the public
- domain. To the extent possible under law, the author of this file
- waives all copyright and related or neighboring rights to it.
-*/
-
-precision mediump float;
-
-attribute vec3 position;
-attribute vec2 texCoord;
-attribute vec4 color;
-
-uniform mat4 model;
-uniform mat4 view;
-uniform mat4 projection;
-
-uniform float cut;
-uniform float range;
-
-varying vec4 fColor;
-
-void main(void) {
- gl_Position = projection * view * model * vec4(position, 1.0);
- vec2 n = vec2(texCoord.x, cut);
- float p = 1.0 - range * abs(snoise(n));
- fColor = vec4(p * color.rgb, color.a);
-}