summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowStencil.fs
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.fs
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.fs')
-rw-r--r--gfx/gl/shaders/shadowStencil.fs6
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/gl/shaders/shadowStencil.fs b/gfx/gl/shaders/shadowStencil.fs
index f149c23..1164cc9 100644
--- a/gfx/gl/shaders/shadowStencil.fs
+++ b/gfx/gl/shaders/shadowStencil.fs
@@ -3,13 +3,15 @@
layout(binding = 0) uniform sampler2D textureAlbedo;
-include(`materialInterface.glsl')
+include(`materialDetail.glsl')
include(`materialCommon.glsl')
+in vec2 gTexCoords;
+flat in MaterialDetail gMaterial;
void
main()
{
- if (getTextureColour(Material, TexCoords).a < 0.5) {
+ if (getTextureColour(gMaterial, gTexCoords).a < 0.5) {
discard;
}
gl_FragDepth = gl_FragCoord.z;