summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowStencil.vs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-07-21 02:33:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-10 18:14:46 +0100
commitf737aada2b7164683303beb3bb490c30a4949fb0 (patch)
treed188ee31247b2f3f38021d1cc9a8e558c5a8b15f /gfx/gl/shaders/shadowStencil.vs
parentUse mesh extents for shadow stencil extents (diff)
downloadilt-f737aada2b7164683303beb3bb490c30a4949fb0.tar.bz2
ilt-f737aada2b7164683303beb3bb490c30a4949fb0.tar.xz
ilt-f737aada2b7164683303beb3bb490c30a4949fb0.zip
Use texture alpha in shadow stencil
Diffstat (limited to 'gfx/gl/shaders/shadowStencil.vs')
-rw-r--r--gfx/gl/shaders/shadowStencil.vs7
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowStencil.vs b/gfx/gl/shaders/shadowStencil.vs
index 4f4c250..45a0867 100644
--- a/gfx/gl/shaders/shadowStencil.vs
+++ b/gfx/gl/shaders/shadowStencil.vs
@@ -1,11 +1,18 @@
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
+layout(binding = 1) uniform usampler2DRect materialData;
+
include(`meshIn.glsl')
+include(`materialInterface.glsl')
+include(`getMaterialDetail.glsl')
uniform mat4 viewProjection;
void
main()
{
+ TexCoords = texCoord;
+ Material = getMaterialDetail(material);
+
gl_Position = viewProjection * vec4(position, 1);
}