summaryrefslogtreecommitdiff
path: root/chart2/opengl/backgroundVertexShader.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/backgroundVertexShader.glsl
parent06f4573a87d861c50c0017702aed75a389619b46 (diff)
add Symbol2D rendering
Change-Id: Ic294ffc4bc675495fe83ac182dbebbba7245c7b9
Diffstat (limited to 'chart2/opengl/backgroundVertexShader.glsl')
-rw-r--r--chart2/opengl/backgroundVertexShader.glsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/chart2/opengl/backgroundVertexShader.glsl b/chart2/opengl/backgroundVertexShader.glsl
new file mode 100644
index 000000000000..2a3a34116256
--- /dev/null
+++ b/chart2/opengl/backgroundVertexShader.glsl
@@ -0,0 +1,10 @@
+attribute vec3 vPosition;
+uniform mat4 MVP;
+attribute vec4 vColor;
+varying vec4 fragmentColor;
+
+void main()
+{
+ gl_Position = MVP * vec4(vPosition, 1);
+ fragmentColor = vColor;
+}