Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fb982d1f
Kaydet (Commit)
fb982d1f
authored
Ock 31, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add license headers to glsl files
Change-Id: Ib473d7bbb39f50f5fea549e69dcac0e938a1700a
üst
5669da20
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
130 additions
and
0 deletions
+130
-0
backgroundFragmentShader.glsl
chart2/opengl/backgroundFragmentShader.glsl
+11
-0
backgroundVertexShader.glsl
chart2/opengl/backgroundVertexShader.glsl
+11
-0
commonFragmentShader.glsl
chart2/opengl/commonFragmentShader.glsl
+11
-0
commonVertexShader.glsl
chart2/opengl/commonVertexShader.glsl
+11
-0
debugFragmentShader.glsl
chart2/opengl/debugFragmentShader.glsl
+10
-0
debugVertexShader.glsl
chart2/opengl/debugVertexShader.glsl
+10
-0
renderFragmentShader.glsl
chart2/opengl/renderFragmentShader.glsl
+11
-0
renderVertexShader.glsl
chart2/opengl/renderVertexShader.glsl
+11
-0
symbolFragmentShader.glsl
chart2/opengl/symbolFragmentShader.glsl
+11
-0
symbolVertexShader.glsl
chart2/opengl/symbolVertexShader.glsl
+11
-0
textFragmentShader.glsl
chart2/opengl/textFragmentShader.glsl
+11
-0
textVertexShader.glsl
chart2/opengl/textVertexShader.glsl
+11
-0
No files found.
chart2/opengl/backgroundFragmentShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/backgroundVertexShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/commonFragmentShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/commonVertexShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/debugFragmentShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/debugVertexShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/renderFragmentShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/renderVertexShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/symbolFragmentShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/symbolVertexShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/textFragmentShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
chart2/opengl/textVertexShader.glsl
Dosyayı görüntüle @
fb982d1f
/* -*- 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: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment