summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/network.fs
diff options
context:
space:
mode:
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);
}