diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-31 19:23:54 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-31 19:25:12 +0100 |
commit | fb982d1fcaefe76f4e71a17b88e887a1d38dabdc (patch) | |
tree | eabf006ca6f6c422b18b2e29fe936354e3c95e6a /chart2/opengl | |
parent | 5669da20e79aa3a76af440b7b972e0e8a5868e9e (diff) |
add license headers to glsl files
Change-Id: Ib473d7bbb39f50f5fea549e69dcac0e938a1700a
Diffstat (limited to 'chart2/opengl')
-rw-r--r-- | chart2/opengl/backgroundFragmentShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/backgroundVertexShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/commonFragmentShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/commonVertexShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/debugFragmentShader.glsl | 10 | ||||
-rw-r--r-- | chart2/opengl/debugVertexShader.glsl | 10 | ||||
-rw-r--r-- | chart2/opengl/renderFragmentShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/renderVertexShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/symbolFragmentShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/symbolVertexShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/textFragmentShader.glsl | 11 | ||||
-rw-r--r-- | chart2/opengl/textVertexShader.glsl | 11 |
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: */ |