summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowStencil.vs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-09-03 01:37:03 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-09-03 01:37:03 +0100
commitf22f79330f9b8851cda76d1e11555877cbb72d80 (patch)
tree5d1934ff10a5be4a609791a8ab2327b39a4c0ae4 /gfx/gl/shaders/shadowStencil.vs
parentUpdate stencil texture to 2d array (diff)
downloadilt-f22f79330f9b8851cda76d1e11555877cbb72d80.tar.bz2
ilt-f22f79330f9b8851cda76d1e11555877cbb72d80.tar.xz
ilt-f22f79330f9b8851cda76d1e11555877cbb72d80.zip
Populate all layers of the stencil texture
Albeit with the same projection
Diffstat (limited to 'gfx/gl/shaders/shadowStencil.vs')
-rw-r--r--gfx/gl/shaders/shadowStencil.vs10
1 files changed, 6 insertions, 4 deletions
diff --git a/gfx/gl/shaders/shadowStencil.vs b/gfx/gl/shaders/shadowStencil.vs
index 45a0867..a15c4fb 100644
--- a/gfx/gl/shaders/shadowStencil.vs
+++ b/gfx/gl/shaders/shadowStencil.vs
@@ -4,15 +4,17 @@
layout(binding = 1) uniform usampler2DRect materialData;
include(`meshIn.glsl')
-include(`materialInterface.glsl')
+include(`materialDetail.glsl')
include(`getMaterialDetail.glsl')
-uniform mat4 viewProjection;
+
+out vec3 FragPos;
+out vec2 TexCoords;
+flat out MaterialDetail Material;
void
main()
{
TexCoords = texCoord;
Material = getMaterialDetail(material);
-
- gl_Position = viewProjection * vec4(position, 1);
+ FragPos = position;
}