on-internet
← Community

'texture' : no matching overloaded function found even though it *should* comply with documentation

Stack Overflow ·

I am trying to convert an OpenGL GLSL shader into a OpenGL ES one but it doesn't seem to work that well. The shader works flawlessly in normal OpenGL but it completely breaks in OpenGL ES. Here is the normal OpenGL GLSL code: #version 330 uniform sampler2D texture0; float amnt = 8.0; vec2 uv = gl_FragCoord.xy / vec2(1270,720).xy; void main() { float thing = -1.0; if (uv.y <= 0.5) { thing = 1.0; } uv.y += distance(uv.x, 0.5) * (distance(uv.x, 0.5) * 0.25 ) * distance(uv.y, 0.5) * thing * amnt; gl_FragColor = texture(texture0, vec2(uv.x, uv.y)); } The OpenGL ES GLSL code: precision highp float;

Comments

Sign in or sign up to comment and upvote.

No comments yet.