summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/depthOut.frag
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/depthOut.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/depthOut.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/depthOut.frag b/chromium/third_party/glslang/src/Test/depthOut.frag
new file mode 100644
index 00000000000..9b08962eec3
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/depthOut.frag
@@ -0,0 +1,10 @@
+#version 130
+
+varying vec4 Color;
+varying float Depth;
+
+void main()
+{
+ gl_FragDepth = Depth;
+ gl_FragColor = Color;
+}