summaryrefslogtreecommitdiff
path: root/chart2/opengl/symbolVertexShader.glsl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-17 05:06:00 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-17 08:13:49 +0100
commit40ea5e9dd0eff66728d1d2d7aac41349a14de594 (patch)
tree135fdbd05d5dcc0859351891482277158f143028 /chart2/opengl/symbolVertexShader.glsl
parentbd78139dcbf804e6e0b8be5409436991ac08b36c (diff)
Revert "Move OpenGLRender to vcl"
This reverts commit 04b70c682e2cdc52b144961a83d05fd203de6884. The OpenGLRender is not abstract enough for vcl. Leave it in chart2. Conflicts: chart2/source/view/inc/DummyXShape.hxx chart2/source/view/main/OpenGLRender.hxx vcl/Library_vclopengl.mk Change-Id: I5392c8ee34462ff49059126ca2284d8ebe1eb379
Diffstat (limited to 'chart2/opengl/symbolVertexShader.glsl')
-rw-r--r--chart2/opengl/symbolVertexShader.glsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/chart2/opengl/symbolVertexShader.glsl b/chart2/opengl/symbolVertexShader.glsl
new file mode 100644
index 000000000000..3cf9f41ef21b
--- /dev/null
+++ b/chart2/opengl/symbolVertexShader.glsl
@@ -0,0 +1,23 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#version 120
+
+attribute vec3 vPosition;
+uniform mat4 MVP;
+uniform vec4 vColor;
+varying vec4 fragmentColor;
+
+void main()
+{
+ gl_Position = MVP * vec4(vPosition, 1);
+ fragmentColor = vColor;
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */