Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/desktop-only/frag/depth-greater-than.desktop.frag')
-rw-r--r--shaders/desktop-only/frag/depth-greater-than.desktop.frag8
1 files changed, 8 insertions, 0 deletions
diff --git a/shaders/desktop-only/frag/depth-greater-than.desktop.frag b/shaders/desktop-only/frag/depth-greater-than.desktop.frag
new file mode 100644
index 00000000..88f9a421
--- /dev/null
+++ b/shaders/desktop-only/frag/depth-greater-than.desktop.frag
@@ -0,0 +1,8 @@
+#version 450
+layout(early_fragment_tests) in;
+layout(depth_greater) out float gl_FragDepth;
+
+void main()
+{
+ gl_FragDepth = 0.5;
+}