Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
Archivist
/
raylib-src
réplica de
https://github.com/raysan5/raylib
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
24
Wiki
Actividad
Explorar el Código
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
hace 9 años
padre
d84f922372
commit
0e29aa2951
Se han
modificado 2 ficheros
con
2 adiciones
y
2 borrados
Unificar vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
examples/resources/shaders/glsl330/bloom.fs
+1
-1
examples/resources/shaders/glsl330/swirl.fs
+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs
Ver fichero
@ -22,7 +22,7 @@ void main()
{
{
for
(int
j
=
-3
;
j
<
3
;
j
+
+
)
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
Ver fichero
@ -40,7 +40,7 @@ void main (void)
}
}
tc
+=
c
e
n
t
e
r
;
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
)
;
;
finalColor
=
vec4(color,
1
.0
)
;
;
}
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar