Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
Archivist
/
raylib-src
miroir de
https://github.com/raysan5/raylib
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Versions
24
Wiki
Activité
Parcourir la source
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
il y a 8 ans
Parent
d84f922372
révision
0e29aa2951
2 fichiers modifiés
avec
2 ajouts
et
2 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+1
-1
examples/resources/shaders/glsl330/bloom.fs
+1
-1
examples/resources/shaders/glsl330/swirl.fs
+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs
Voir le fichier
@ -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
Voir le fichier
@ -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
)
;
;
}
Écrire
Aperçu
Chargement…
Annuler
Enregistrer