summaryrefslogtreecommitdiffstats
path: root/o3d/compiler/glsl_validator/shaders/spirit-box.frag
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/compiler/glsl_validator/shaders/spirit-box.frag')
-rw-r--r--o3d/compiler/glsl_validator/shaders/spirit-box.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/o3d/compiler/glsl_validator/shaders/spirit-box.frag b/o3d/compiler/glsl_validator/shaders/spirit-box.frag
new file mode 100644
index 0000000..3013143
--- /dev/null
+++ b/o3d/compiler/glsl_validator/shaders/spirit-box.frag
@@ -0,0 +1,12 @@
+uniform sampler2D sampler2d;
+
+varying float v_Dot;
+varying vec2 v_texCoord;
+
+void main()
+{
+ vec2 texCoord = vec2(v_texCoord.s, 1.0 - v_texCoord.t);
+ vec4 color = texture2D(sampler2d, texCoord);
+ color += vec4(0.1, 0.1, 0.1, 1);
+ gl_FragColor = vec4(color.xyz * v_Dot, color.a);
+}