X-Git-Url: https://git.yukkurigames.com/?p=featherfall2.git;a=blobdiff_plain;f=src%2Fdata%2Fshaders%2Fnoisyquads.vert;fp=src%2Fdata%2Fshaders%2Fnoisyquads.vert;h=0000000000000000000000000000000000000000;hp=8388349a94466eaccb268aa8797ddfa28b6ceded;hb=c6b5fcbed00096406ca526ec55f5e945d35c916a;hpb=4acf66ea4fe8765022ca84cc9ed68ad6ee7c6403 diff --git a/src/data/shaders/noisyquads.vert b/src/data/shaders/noisyquads.vert deleted file mode 100644 index 8388349..0000000 --- a/src/data/shaders/noisyquads.vert +++ /dev/null @@ -1,26 +0,0 @@ -/* 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); -}