View Full Version : TexFetch and texture coordinates

01-31-2012, 02:09 PM
Hi, I have been trying to get texFetch working in GLSL and there are some artifacts stemming from the fact that it clamps texture coordinates to the image boundaries. Is there some relatively clean way to detect the wrapping mode(apart from setting a uniform just for this) and use this together with texFetch in runtime, supporting other modes except from clamp (repeat for instance?)?