summaryrefslogtreecommitdiff
path: root/chart2/opengl/renderTextureFragmentShader.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/opengl/renderTextureFragmentShader.glsl')
-rw-r--r--chart2/opengl/renderTextureFragmentShader.glsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/chart2/opengl/renderTextureFragmentShader.glsl b/chart2/opengl/renderTextureFragmentShader.glsl
new file mode 100644
index 000000000000..a6c71f4e4d96
--- /dev/null
+++ b/chart2/opengl/renderTextureFragmentShader.glsl
@@ -0,0 +1,18 @@
+/* -*- 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/.
+ */
+
+uniform sampler2D RenderTex;
+varying vec2 vTexCoord;
+
+void main()
+{
+ gl_FragColor = vec4(texture2D(RenderTex, vTexCoord).rgb, 1.0);
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */