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