Kaydet (Commit) fb982d1f authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add license headers to glsl files

Change-Id: Ib473d7bbb39f50f5fea549e69dcac0e938a1700a
üst 5669da20
/* -*- 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; varying vec4 fragmentColor;
void main() void main()
{ {
gl_FragColor = fragmentColor; gl_FragColor = fragmentColor;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; attribute vec3 vPosition;
uniform mat4 MVP; uniform mat4 MVP;
attribute vec4 vColor; attribute vec4 vColor;
...@@ -8,3 +17,5 @@ void main() ...@@ -8,3 +17,5 @@ void main()
gl_Position = MVP * vec4(vPosition, 1); gl_Position = MVP * vec4(vPosition, 1);
fragmentColor = vColor; fragmentColor = vColor;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; varying vec4 fragmentColor;
void main() void main()
{ {
gl_FragColor = fragmentColor; gl_FragColor = fragmentColor;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; attribute vec3 vPosition;
uniform mat4 MVP; uniform mat4 MVP;
uniform vec4 vColor; uniform vec4 vColor;
...@@ -8,3 +17,5 @@ void main() ...@@ -8,3 +17,5 @@ void main()
gl_Position = MVP * vec4(vPosition, 1); gl_Position = MVP * vec4(vPosition, 1);
fragmentColor = vColor; fragmentColor = vColor;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; varying vec4 fragmentColor;
void main() void main()
...@@ -5,3 +14,4 @@ void main() ...@@ -5,3 +14,4 @@ void main()
gl_FragColor = vec4(1.0, 1.0, 0.0, 0.5); gl_FragColor = vec4(1.0, 1.0, 0.0, 0.5);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; attribute vec3 vPosition;
uniform vec4 vColor; uniform vec4 vColor;
varying vec4 fragmentColor; varying vec4 fragmentColor;
...@@ -7,3 +16,4 @@ void main() ...@@ -7,3 +16,4 @@ void main()
gl_Position = vec4(vPosition, 1); gl_Position = vec4(vPosition, 1);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; uniform sampler2D RenderTex;
varying vec2 vTexCoord; varying vec2 vTexCoord;
...@@ -5,3 +14,5 @@ void main() ...@@ -5,3 +14,5 @@ void main()
{ {
gl_FragColor = vec4(texture2D(RenderTex, vTexCoord).rgb, 1.0); gl_FragColor = vec4(texture2D(RenderTex, vTexCoord).rgb, 1.0);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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 vec4 vPosition;
attribute vec2 texCoord; attribute vec2 texCoord;
varying vec2 vTexCoord; varying vec2 vTexCoord;
...@@ -7,3 +16,5 @@ void main() ...@@ -7,3 +16,5 @@ void main()
gl_Position = vPosition; gl_Position = vPosition;
vTexCoord = texCoord; vTexCoord = texCoord;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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 #version 120
varying vec4 fragmentColor; varying vec4 fragmentColor;
...@@ -10,3 +19,5 @@ void main() ...@@ -10,3 +19,5 @@ void main()
gl_FragColor = fragmentColor; gl_FragColor = fragmentColor;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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 #version 120
attribute vec3 vPosition; attribute vec3 vPosition;
...@@ -11,3 +20,5 @@ void main() ...@@ -11,3 +20,5 @@ void main()
fragmentColor = vColor; fragmentColor = vColor;
gl_PointSize = 10.0; gl_PointSize = 10.0;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; uniform sampler2D TextTex;
varying vec2 vTexCoord; varying vec2 vTexCoord;
void main() void main()
{ {
gl_FragColor = vec4(texture2D(TextTex, vTexCoord).rgba); gl_FragColor = vec4(texture2D(TextTex, vTexCoord).rgba);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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; attribute vec3 vPosition;
uniform mat4 MVP; uniform mat4 MVP;
attribute vec2 texCoord; attribute vec2 texCoord;
...@@ -7,3 +16,5 @@ void main() ...@@ -7,3 +16,5 @@ void main()
gl_Position = MVP * vec4(vPosition, 1); gl_Position = MVP * vec4(vPosition, 1);
vTexCoord = texCoord; vTexCoord = texCoord;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment