summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/webgl-conf/checkout/resources/samplerUniformShader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/test/webgl-conf/checkout/resources/samplerUniformShader.frag')
-rw-r--r--dom/canvas/test/webgl-conf/checkout/resources/samplerUniformShader.frag8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/canvas/test/webgl-conf/checkout/resources/samplerUniformShader.frag b/dom/canvas/test/webgl-conf/checkout/resources/samplerUniformShader.frag
new file mode 100644
index 000000000..11cba1274
--- /dev/null
+++ b/dom/canvas/test/webgl-conf/checkout/resources/samplerUniformShader.frag
@@ -0,0 +1,8 @@
+precision mediump float;
+uniform sampler2D s2D;
+uniform samplerCube sCube;
+void main()
+{
+ gl_FragColor = texture2D(s2D, vec2(0.5, 0.5)) +
+ textureCube(sCube, vec3(0.5, 0.5, 0.5));
+}