summaryrefslogtreecommitdiff
path: root/chart2/opengl/textVertexShader.glsl
diff options
context:
space:
mode:
authorPeilin <peilin@multicorewareinc.com>2014-01-23 02:49:10 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:56 +0100
commita7b0b253f086cd8c5d7947d9e1d958263c18a3e3 (patch)
treea7f8e367cd0d720d25ee4ac64b11f1b6c16e7581 /chart2/opengl/textVertexShader.glsl
parent06f4573a87d861c50c0017702aed75a389619b46 (diff)
add Symbol2D rendering
Change-Id: Ic294ffc4bc675495fe83ac182dbebbba7245c7b9
Diffstat (limited to 'chart2/opengl/textVertexShader.glsl')
-rw-r--r--chart2/opengl/textVertexShader.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/chart2/opengl/textVertexShader.glsl b/chart2/opengl/textVertexShader.glsl
new file mode 100644
index 000000000000..013f43c6157a
--- /dev/null
+++ b/chart2/opengl/textVertexShader.glsl
@@ -0,0 +1,9 @@
+attribute vec3 vPosition;
+uniform mat4 MVP;
+attribute vec2 texCoord;
+varying vec2 vTexCoord;
+void main()
+{
+ gl_Position = MVP * vec4(vPosition, 1);
+ vTexCoord = texCoord;
+}