blob: c7d14cf92a4b39ced6b8073a7f4af2670a70694c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#version 130
in vec2 texCoord0;
in float depth;
uniform sampler2D sampler;
uniform vec3 waves;
void main()
{
gl_FragColor = texture(sampler, texCoord0);
gl_FragColor.a *= clamp(-depth * .7, .1, 1.0);
}
|