diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-20 12:05:53 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-20 15:08:43 +0000 |
commit | 7f852de673bb687c5721c6a74367278f8ba62f56 (patch) | |
tree | 40b4e903854f4457191af6a4bb28abfd18b69fc7 /gfx/gl/shaders/network.fs | |
parent | Update network with vertex array (diff) | |
download | ilt-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.fs | 11 |
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); } |