summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/water.fs
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders/water.fs')
-rw-r--r--gfx/gl/shaders/water.fs5
1 files changed, 3 insertions, 2 deletions
diff --git a/gfx/gl/shaders/water.fs b/gfx/gl/shaders/water.fs
index 8891733..0918d9f 100644
--- a/gfx/gl/shaders/water.fs
+++ b/gfx/gl/shaders/water.fs
@@ -1,7 +1,8 @@
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
-include(`materialInterface.glsl')
+in vec3 FragPos;
+in vec2 TexCoords;
include(`materialOut.glsl')
uniform sampler2D texture0;
@@ -10,7 +11,7 @@ void
main()
{
gPosition = ivec4(FragPos, 1);
- gNormal = vec4(Normal, 1);
+ gNormal = vec4(0, 0, 1, 1);
gAlbedoSpec = texture(texture0, TexCoords);
gAlbedoSpec.a *= clamp(-FragPos.z * .0007, .1, 1.0);
}