summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/network.fs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-20 12:05:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-20 15:08:43 +0000
commit7f852de673bb687c5721c6a74367278f8ba62f56 (patch)
tree40b4e903854f4457191af6a4bb28abfd18b69fc7 /gfx/gl/shaders/network.fs
parentUpdate network with vertex array (diff)
downloadilt-7f852de673bb687c5721c6a74367278f8ba62f56.tar.bz2
ilt-7f852de673bb687c5721c6a74367278f8ba62f56.tar.xz
ilt-7f852de673bb687c5721c6a74367278f8ba62f56.zip
Implement complete network straight part shader
Diffstat (limited to 'gfx/gl/shaders/network.fs')
-rw-r--r--gfx/gl/shaders/network.fs11
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/gl/shaders/network.fs b/gfx/gl/shaders/network.fs
index d427da2..e7d15b3 100644
--- a/gfx/gl/shaders/network.fs
+++ b/gfx/gl/shaders/network.fs
@@ -1,6 +1,17 @@
#version 330 core
+#extension GL_ARB_shading_language_420pack : enable
+
+include(`materialOut.glsl')
+in vec3 rposition;
+in vec2 texCoord;
+
+layout(binding = 0) uniform sampler2D texture0;
+uniform ivec3 viewPoint;
void
main()
{
+ gPosition = ivec4(viewPoint + rposition, 0);
+ gNormal = vec4(0, 0, 1, 1);
+ gAlbedoSpec = texture(texture0, texCoord);
}