PDA

View Full Version : TexFetch and texture coordinates



Y-tension
01-31-2012, 03: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?)?