texelFetch equivalent in GLES2

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gba2511

I am trying to export my game for HTML5 so I converted project in GLES2 from GLES3. The game heavily depends on shaders. In GLES3 I was using texelFetch to access some data in shader script but once I converted it to GLES2 I get following error:

"texelFetch(sampler2D, ivec2, int)" is supported only on high-end platform!

Is there any other way to access sampler2D values? texture( sampler2D, UV) doesn’t work because it doesn’t return exact values (I searched and found out that it applies some filters but I’m not sure what that means)