Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Giriş Yap
Archivist
/
raylib-src
şunun yansıması
https://github.com/raysan5/raylib
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Sürümler
24
Wiki
Aktivite
Kaynağa Gözat
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
8 yıl önce
ebeveyn
d84f922372
işleme
0e29aa2951
2 değiştirilmiş dosya
ile
2 ekleme
ve
2 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+1
-1
examples/resources/shaders/glsl330/bloom.fs
+1
-1
examples/resources/shaders/glsl330/swirl.fs
+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs
Dosyayı Görüntüle
@ -22,7 +22,7 @@ void main()
{
for
(int
j
=
-3
;
j
<
3
;
j
+
+
)
{
sum
+=
texture
2D
(texture0,
fragTexCoord
+
vec2(j,
i
)
*
0
.004
)
*
0
.25
;
sum
+=
texture(texture0,
fragTexCoord
+
vec2(j,
i
)
*
0
.004
)
*
0
.25
;
}
}
+ 1
- 1
examples/resources/shaders/glsl330/swirl.fs
Dosyayı Görüntüle
@ -40,7 +40,7 @@ void main (void)
}
tc
+=
c
e
n
t
e
r
;
vec3
color
=
texture
2D
(texture0,
t
c
/
t
e
x
S
i
z
e
)
.
r
g
b
;
vec3
color
=
texture(texture0,
t
c
/
t
e
x
S
i
z
e
)
.
r
g
b
;
finalColor
=
vec4(color,
1
.0
)
;
;
}
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet