From 97d4db588bfc4254e09e4305fb0525a04748f84e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Apr 2024 19:38:18 +0100 Subject: Stripped down water vertex and simplified shaders --- gfx/gl/shaders/water.fs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gfx/gl/shaders/water.fs') 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); } -- cgit v1.2.3