[PD] gem/GLSL: how to compute correct coordinates for rectangular textures