summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/water.fs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-08 00:59:52 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-08 00:59:52 +0100
commit34ea78ea50b015d660fbd9169f61506363959214 (patch)
tree1cb1de6865c0c35e2c35fcd6e2b5610b0eedd8ab /gfx/gl/shaders/water.fs
parentMerge remote-tracking branch 'origin/deform-terrain' (diff)
parentFix water texture wrapper in light of large position values (diff)
downloadilt-34ea78ea50b015d660fbd9169f61506363959214.tar.bz2
ilt-34ea78ea50b015d660fbd9169f61506363959214.tar.xz
ilt-34ea78ea50b015d660fbd9169f61506363959214.zip
Merge branch 'separate-water'
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);
}