Corrected function name

texture2D() is deprecated on GLSL 330
This commit is contained in:
Ray
2016-05-17 00:39:56 +02:00
parent d84f922372
commit 0e29aa2951
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ void main()
{
for (int j = -3; j < 3; j++)
{
sum += texture2D(texture0, fragTexCoord + vec2(j, i)*0.004)*0.25;
sum += texture(texture0, fragTexCoord + vec2(j, i)*0.004)*0.25;
}
}