summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_draw_3d.data
diff options
context:
space:
mode:
Diffstat (limited to 'examples/text/text_draw_3d.data')
-rw-r--r--examples/text/text_draw_3d.data20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/text/text_draw_3d.data b/examples/text/text_draw_3d.data
new file mode 100644
index 0000000..a6b1e20
--- /dev/null
+++ b/examples/text/text_draw_3d.data
@@ -0,0 +1,20 @@
+#version 100
+
+precision mediump float;
+
+// Input vertex attributes (from vertex shader)
+varying vec2 fragTexCoord;
+varying vec4 fragColor;
+
+// Input uniform values
+uniform sampler2D texture0;
+uniform vec4 colDiffuse;
+
+void main()
+{
+ vec4 texelColor = texture2D(texture0, fragTexCoord);
+
+ if (texelColor.a == 0.0) discard;
+
+ gl_FragColor = texelColor*fragColor*colDiffuse;
+}