Remove use of texture2D()

This commit is contained in:
baldurk
2016-02-21 14:37:04 +01:00
parent 3addd2ed38
commit df1dc3368f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -30,5 +30,5 @@ layout (location = 0) out vec4 color_out;
void main(void)
{
color_out = texture2D(tex0, gl_FragCoord.xy/textureSize(tex0, 0));
color_out = texture(tex0, gl_FragCoord.xy/textureSize(tex0, 0));
}
+1 -1
View File
@@ -43,7 +43,7 @@ void main(void)
vec2 uv;
uv.x = mix(IN.tex.x, IN.tex.z, IN.glyphuv.x);
uv.y = mix(IN.tex.y, IN.tex.w, IN.glyphuv.y);
text = texture2D(tex0, uv.xy).x;
text = texture(tex0, uv.xy).x;
}
color_out = vec4(text.xxx, clamp(text + 0.5f, 0.0f, 1.0f));