Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Archivist
/
raylib-src
mirror da
https://github.com/raysan5/raylib
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Rilasci
24
Wiki
Attività
Sfoglia il codice sorgente
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
8 anni fa
parent
d84f922372
commit
0e29aa2951
2 ha cambiato i file
con
2 aggiunte
e
2 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-1
examples/resources/shaders/glsl330/bloom.fs
+1
-1
examples/resources/shaders/glsl330/swirl.fs
+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs
Vedi File
@ -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
Vedi File
@ -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
)
;
;
}
Scrivi
Anteprima
Caricamento…
Annulla
Salva