summaryrefslogtreecommitdiff
path: root/chart2/opengl/textVertexShader.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/textVertexShader.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/textVertexShader.glsl')
-rw-r--r--chart2/opengl/textVertexShader.glsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/chart2/opengl/textVertexShader.glsl b/chart2/opengl/textVertexShader.glsl
new file mode 100644
index 000000000000..a805229eb07a
--- /dev/null
+++ b/chart2/opengl/textVertexShader.glsl
@@ -0,0 +1,20 @@
+/* -*- 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/.
+ */
+
+attribute vec3 vPosition;
+uniform mat4 MVP;
+attribute vec2 texCoord;
+varying vec2 vTexCoord;
+void main()
+{
+ gl_Position = MVP * vec4(vPosition, 1);
+ vTexCoord = texCoord;
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */