summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/water.fs
blob: 8891733206a9ea995bb1c43d78bc46be225e0c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 330 core
#extension GL_ARB_shading_language_420pack : enable

include(`materialInterface.glsl')
include(`materialOut.glsl')

uniform sampler2D texture0;

void
main()
{
	gPosition = ivec4(FragPos, 1);
	gNormal = vec4(Normal, 1);
	gAlbedoSpec = texture(texture0, TexCoords);
	gAlbedoSpec.a *= clamp(-FragPos.z * .0007, .1, 1.0);
}