Clamp textures to avoid artefacts when they do not line up with pixels.