X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=texture1d.frag;h=addf9008ef7c1bfe7889d0676ef48bbb74bff389;hp=4f8b9813c0c4673550dccb5270a588bd366ffdc0;hb=d5f2bda2e1dd1b4b77100328d2e441140b715534;hpb=92573f7be18bfca16dd3292cbe536d7d7912198f diff --git a/texture1d.frag b/texture1d.frag index 4f8b981..addf900 100644 --- a/texture1d.frag +++ b/texture1d.frag @@ -1,7 +1,11 @@ -uniform sampler1D tex; +#ifdef GL_ES +precision highp float; +#endif + +uniform sampler2D tex; varying vec2 tc; void main() { - gl_FragColor = texture1D(tex, tc.x); + gl_FragColor = texture2D(tex, tc); // Second component is irrelevant. }