IOhannes m zmölnig escribió:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Matteo Sisti Sette wrote:
IOhannes m zmölnig escribió:
use rectangle textures ([rectangle 1( to [pix_texture]).
But the help patch for pix_texture says:
"Inlet 1: rectangle 0|1 : use rectangle-texturing when available (default=1)"
hmm, i think this is wrong. rectangle is enabled by default on osx, but not on the other platforms (cannot remember why now; but i guess it made some problems)
Ohhhh OK
with rectangle textures your texcoords should be 0..width-1 and 0..height-1 (rather than 0,,1); don't ask me why; i think it's one of the more stupid decisions of the ARB.
And I have to use texture2DRec instead of texture2D, don't I?
Indeed with [pix_texture] I have no problem using non-power-of-two-size textures, the question is how to use them in a shader.....
you don't have problems because Gem tries to take care of everything. with shaders you somehow circumvent Gem's trickery, so it you have to manually take care.
Yeah that's what I guessed
Thanks m.