Hi All,
Scaling and offsetting textures is very easy like below:
glTexCoord2d(offsetX + scaleX * U, offsetY + scaleY * V);
Is there a way to specify a scale and offset somewhere else and leave the glTexCoord2d() call like below:
glTexCoord2d(U, V);
so we don’t need to recompile the object every time the user changes the texture scale?
Thanks,
Alberto