summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/pointCoord.frag
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/pointCoord.frag')
-rw-r--r--chromium/third_party/glslang/src/Test/pointCoord.frag15
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/pointCoord.frag b/chromium/third_party/glslang/src/Test/pointCoord.frag
new file mode 100644
index 00000000000..8dc9e746db4
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/pointCoord.frag
@@ -0,0 +1,15 @@
+precision highp float;
+
+uniform sampler2D sampler;
+
+void main()
+{
+ vec4 color;
+
+ if (length(gl_PointCoord) < 0.3)
+ color = texture2D(sampler, gl_PointCoord);
+ else
+ color = vec4(0.0);
+
+ gl_FragColor = color;
+}