summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag')
-rw-r--r--dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag b/dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag
new file mode 100644
index 0000000000..8c9a90079a
--- /dev/null
+++ b/dom/canvas/test/webgl-conf/checkout/resources/samplerForWebGL2UniformShader.frag
@@ -0,0 +1,17 @@
+#version 300 es
+
+/*
+Copyright (c) 2019 The Khronos Group Inc.
+Use of this source code is governed by an MIT-style license that can be
+found in the LICENSE.txt file.
+*/
+
+precision mediump float;
+uniform mediump sampler3D s3D;
+uniform mediump sampler2DArray s2DArray;
+out vec4 fragColor;
+void main()
+{
+ fragColor = texture(s3D, vec3(0.5, 0.5, 0.5)) +
+ texture(s2DArray, vec3(0.5, 0.5, 0.5));
+}