in fact, to use rectangular texture, you nead to initialise texture coordinate in a strange way. see the patch, it's better than any explanation.
cyrille
vade a écrit :
can you change the shader and patch I posted to use rectangular
textures? I tried and only had a single texel mapped.Maybe its an OS X thing?
On Jan 2, 2008, at 12:18 PM, cyrille henry wrote:
using coordinate mode 0 : texture coordinate goes from (0,0) to
(size.x,size.y), so it's easier to get the size of the texture (with
pix_info), send it to the shader to make the correction.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list