summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowDynamicPointInstWithTextures.fs
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders/shadowDynamicPointInstWithTextures.fs')
-rw-r--r--gfx/gl/shaders/shadowDynamicPointInstWithTextures.fs15
1 files changed, 15 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowDynamicPointInstWithTextures.fs b/gfx/gl/shaders/shadowDynamicPointInstWithTextures.fs
new file mode 100644
index 0000000..90519e3
--- /dev/null
+++ b/gfx/gl/shaders/shadowDynamicPointInstWithTextures.fs
@@ -0,0 +1,15 @@
+#version 330 core
+#extension GL_ARB_shading_language_420pack : enable
+
+layout(binding = 3) uniform sampler2D texture0;
+
+in vec2 texCoord;
+
+void
+main()
+{
+ if (texture(texture0, texCoord).a < 0.5) {
+ discard;
+ }
+ gl_FragDepth = gl_FragCoord.z;
+}