This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
Corrected function name
texture2D() is deprecated on GLSL 330
pull/118/head
Ray
8 years ago
parent
d84f922372
commit
0e29aa2951
2 changed files
with
2 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
examples/resources/shaders/glsl330/bloom.fs
+1
-1
examples/resources/shaders/glsl330/swirl.fs
+ 1
- 1
examples/resources/shaders/glsl330/bloom.fs
View File
@ -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
View File
@ -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
)
;
;
}
}
Write
Preview
Loading…
Cancel
Save