[PD] GEM : GLSL Mixer - working 2 channel video mixer example
cyrille.henry at la-kitchen.fr
Sun Jan 6 22:49:40 CET 2008
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.
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 at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3306 bytes
Desc: not available
More information about the Pd-list