summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/network.fs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-23 23:50:46 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-23 23:50:46 +0000
commit8391c63472641c67f59723d0a6706efff6fb17d4 (patch)
treeb76f6fc642b749ee69d4be4b2e3f60e80c0ed7bc /gfx/gl/shaders/network.fs
parentBind the network profile in as uniforms (diff)
downloadilt-8391c63472641c67f59723d0a6706efff6fb17d4.tar.bz2
ilt-8391c63472641c67f59723d0a6706efff6fb17d4.tar.xz
ilt-8391c63472641c67f59723d0a6706efff6fb17d4.zip
Fix network population of position in gBuffer
Adds some rails to the basic test highlighting broken shadows
Diffstat (limited to 'gfx/gl/shaders/network.fs')
-rw-r--r--gfx/gl/shaders/network.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/network.fs b/gfx/gl/shaders/network.fs
index e7d15b3..4e347b4 100644
--- a/gfx/gl/shaders/network.fs
+++ b/gfx/gl/shaders/network.fs
@@ -11,7 +11,7 @@ uniform ivec3 viewPoint;
void
main()
{
- gPosition = ivec4(viewPoint + rposition, 0);
+ gPosition = ivec4(viewPoint + rposition, 1);
gNormal = vec4(0, 0, 1, 1);
gAlbedoSpec = texture(texture0, texCoord);
}