Corrected function name
texture2D() is deprecated on GLSL 330
This commit is contained in:
parent
d84f922372
commit
0e29aa2951
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ void main (void)
|
|||
}
|
||||
|
||||
tc += center;
|
||||
vec3 color = texture2D(texture0, tc/texSize).rgb;
|
||||
vec3 color = texture(texture0, tc/texSize).rgb;
|
||||
|
||||
finalColor = vec4(color, 1.0);;
|
||||
}
|
||||
Loading…
Reference in a new issue