summaryrefslogtreecommitdiff
path: root/chart2/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/opengl')
-rw-r--r--chart2/opengl/backgroundFragmentShader.glsl11
-rw-r--r--chart2/opengl/backgroundVertexShader.glsl11
-rw-r--r--chart2/opengl/commonFragmentShader.glsl11
-rw-r--r--chart2/opengl/commonVertexShader.glsl11
-rw-r--r--chart2/opengl/debugFragmentShader.glsl10
-rw-r--r--chart2/opengl/debugVertexShader.glsl10
-rw-r--r--chart2/opengl/renderFragmentShader.glsl11
-rw-r--r--chart2/opengl/renderVertexShader.glsl11
-rw-r--r--chart2/opengl/symbolFragmentShader.glsl11
-rw-r--r--chart2/opengl/symbolVertexShader.glsl11
-rw-r--r--chart2/opengl/textFragmentShader.glsl11
-rw-r--r--chart2/opengl/textVertexShader.glsl11
12 files changed, 130 insertions, 0 deletions
diff --git a/chart2/opengl/backgroundFragmentShader.glsl b/chart2/opengl/backgroundFragmentShader.glsl
index e772587c9835..805789e731ed 100644
--- a/chart2/opengl/backgroundFragmentShader.glsl
+++ b/chart2/opengl/backgroundFragmentShader.glsl
@@ -1,6 +1,17 @@
+/* -*- 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/.
+ */
+
varying vec4 fragmentColor;
void main()
{
gl_FragColor = fragmentColor;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/backgroundVertexShader.glsl b/chart2/opengl/backgroundVertexShader.glsl
index 2a3a34116256..6d9d6c21f3c9 100644
--- a/chart2/opengl/backgroundVertexShader.glsl
+++ b/chart2/opengl/backgroundVertexShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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 vec4 vColor;
@@ -8,3 +17,5 @@ void main()
gl_Position = MVP * vec4(vPosition, 1);
fragmentColor = vColor;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/commonFragmentShader.glsl b/chart2/opengl/commonFragmentShader.glsl
index e772587c9835..805789e731ed 100644
--- a/chart2/opengl/commonFragmentShader.glsl
+++ b/chart2/opengl/commonFragmentShader.glsl
@@ -1,6 +1,17 @@
+/* -*- 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/.
+ */
+
varying vec4 fragmentColor;
void main()
{
gl_FragColor = fragmentColor;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/commonVertexShader.glsl b/chart2/opengl/commonVertexShader.glsl
index 862a35b509f4..f32e3fd38a91 100644
--- a/chart2/opengl/commonVertexShader.glsl
+++ b/chart2/opengl/commonVertexShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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;
uniform vec4 vColor;
@@ -8,3 +17,5 @@ void main()
gl_Position = MVP * vec4(vPosition, 1);
fragmentColor = vColor;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/debugFragmentShader.glsl b/chart2/opengl/debugFragmentShader.glsl
index ce7f863f3394..d36c4f4d46e4 100644
--- a/chart2/opengl/debugFragmentShader.glsl
+++ b/chart2/opengl/debugFragmentShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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/.
+ */
+
varying vec4 fragmentColor;
void main()
@@ -5,3 +14,4 @@ void main()
gl_FragColor = vec4(1.0, 1.0, 0.0, 0.5);
}
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/debugVertexShader.glsl b/chart2/opengl/debugVertexShader.glsl
index c0f3d0322652..762de3121419 100644
--- a/chart2/opengl/debugVertexShader.glsl
+++ b/chart2/opengl/debugVertexShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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 vec4 vColor;
varying vec4 fragmentColor;
@@ -7,3 +16,4 @@ void main()
gl_Position = vec4(vPosition, 1);
}
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/renderFragmentShader.glsl b/chart2/opengl/renderFragmentShader.glsl
index dd08d9a4a2cd..a6c71f4e4d96 100644
--- a/chart2/opengl/renderFragmentShader.glsl
+++ b/chart2/opengl/renderFragmentShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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;
@@ -5,3 +14,5 @@ void main()
{
gl_FragColor = vec4(texture2D(RenderTex, vTexCoord).rgb, 1.0);
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/renderVertexShader.glsl b/chart2/opengl/renderVertexShader.glsl
index 1c9d3ce647dd..8c55629b07e6 100644
--- a/chart2/opengl/renderVertexShader.glsl
+++ b/chart2/opengl/renderVertexShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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 vec4 vPosition;
attribute vec2 texCoord;
varying vec2 vTexCoord;
@@ -7,3 +16,5 @@ void main()
gl_Position = vPosition;
vTexCoord = texCoord;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/symbolFragmentShader.glsl b/chart2/opengl/symbolFragmentShader.glsl
index 6d6043688e6f..a84d83cfba48 100644
--- a/chart2/opengl/symbolFragmentShader.glsl
+++ b/chart2/opengl/symbolFragmentShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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
varying vec4 fragmentColor;
@@ -10,3 +19,5 @@ void main()
gl_FragColor = fragmentColor;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/symbolVertexShader.glsl b/chart2/opengl/symbolVertexShader.glsl
index b7a9af22fcb4..e1bbec9bc202 100644
--- a/chart2/opengl/symbolVertexShader.glsl
+++ b/chart2/opengl/symbolVertexShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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;
@@ -11,3 +20,5 @@ void main()
fragmentColor = vColor;
gl_PointSize = 10.0;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/textFragmentShader.glsl b/chart2/opengl/textFragmentShader.glsl
index 83d0d82550be..ef8d44d6949d 100644
--- a/chart2/opengl/textFragmentShader.glsl
+++ b/chart2/opengl/textFragmentShader.glsl
@@ -1,6 +1,17 @@
+/* -*- 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 TextTex;
varying vec2 vTexCoord;
void main()
{
gl_FragColor = vec4(texture2D(TextTex, vTexCoord).rgba);
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/textVertexShader.glsl b/chart2/opengl/textVertexShader.glsl
index 013f43c6157a..a805229eb07a 100644
--- a/chart2/opengl/textVertexShader.glsl
+++ b/chart2/opengl/textVertexShader.glsl
@@ -1,3 +1,12 @@
+/* -*- 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;
@@ -7,3 +16,5 @@ void main()
gl_Position = MVP * vec4(vPosition, 1);
vTexCoord = texCoord;
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */