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
89c6efe4
Kaydet (Commit)
89c6efe4
authored
Şub 03, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add the remaining symbols
Change-Id: I81b63d9e0e164e07cee3e10072a565e669b98196
üst
3e2ffb05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
symbolFragmentShader.glsl
chart2/opengl/symbolFragmentShader.glsl
+31
-6
No files found.
chart2/opengl/symbolFragmentShader.glsl
Dosyayı görüntüle @
89c6efe4
...
@@ -37,37 +37,62 @@ void main()
...
@@ -37,37 +37,62 @@ void main()
else
if
(
p
.
y
<
0
&&
abs
(
p
.
x
)
>
0
.
5
)
else
if
(
p
.
y
<
0
&&
abs
(
p
.
x
)
>
0
.
5
)
discard
;
discard
;
}
}
else
if
(
shape
==
4
)
else
if
(
shape
==
4
)
// arrow right
{
{
if
(
p
.
x
>
0
&&
(
abs
(
p
.
x
)
+
abs
(
p
.
y
))
>
1
)
if
(
p
.
x
>
0
&&
(
abs
(
p
.
x
)
+
abs
(
p
.
y
))
>
1
)
discard
;
discard
;
else
if
(
p
.
x
<
0
&&
abs
(
p
.
y
)
>
0
.
5
)
else
if
(
p
.
x
<
0
&&
abs
(
p
.
y
)
>
0
.
5
)
discard
;
discard
;
}
}
else
if
(
shape
==
5
)
else
if
(
shape
==
5
)
// arrow left
{
{
if
(
p
.
x
<
0
&&
(
abs
(
p
.
x
)
+
abs
(
p
.
y
))
>
1
)
if
(
p
.
x
<
0
&&
(
abs
(
p
.
x
)
+
abs
(
p
.
y
))
>
1
)
discard
;
discard
;
else
if
(
p
.
x
>
0
&&
abs
(
p
.
y
)
>
0
.
5
)
else
if
(
p
.
x
>
0
&&
abs
(
p
.
y
)
>
0
.
5
)
discard
;
discard
;
}
}
else
if
(
shape
==
6
)
else
if
(
shape
==
6
)
// hour glass
{
{
if
(
abs
(
p
.
x
)
<
abs
(
p
.
y
))
if
(
abs
(
p
.
x
)
<
abs
(
p
.
y
))
discard
;
discard
;
}
}
else
if
(
shape
==
7
)
else
if
(
shape
==
7
)
// bow tie
{
{
if
(
abs
(
p
.
y
)
<
abs
(
p
.
x
))
if
(
abs
(
p
.
y
)
<
abs
(
p
.
x
))
discard
;
discard
;
}
}
else
if
(
shape
==
8
)
else
if
(
shape
==
8
)
// circle
{
{
if
(
dot
(
p
.
x
,
p
.
y
)
>
1
)
if
(
dot
(
p
.
x
,
p
.
y
)
>
1
)
discard
;
discard
;
}
}
else
if
(
shape
==
9
)
else
if
(
shape
==
9
)
// star
{
{
if
(
sqrt
(
abs
(
p
.
x
))
+
sqrt
(
abs
(
p
.
y
))
>
1
)
discard
;
}
else
if
(
shape
==
10
)
// X
{
if
(
abs
(
abs
(
p
.
x
)
-
abs
(
p
.
y
))
>
0
.
2
)
discard
;
}
else
if
(
shape
==
11
)
// Plus
{
if
(
abs
(
p
.
x
)
>
0
.
2
&&
abs
(
p
.
y
)
>
0
.
2
)
discard
;
}
else
if
(
shape
==
12
)
// asterisk
{
}
else
if
(
shape
==
13
)
// horizontal bar
{
if
(
abs
(
p
.
y
)
>
0
.
2
)
discard
;
}
else
if
(
shape
==
14
)
// vertical bar
{
if
(
abs
(
p
.
x
)
>
0
.
2
)
discard
;
}
}
gl_FragColor
=
fragmentColor
;
gl_FragColor
=
fragmentColor
;
...
...
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