[PD] GEM : GLSL Mixer - working 2 channel video mixer example
cyrille henry
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.
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 at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GEM_glsl_2_channel_mixer_texture_size_correction.zip
Type: application/zip
Size: 3306 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080106/12068992/attachment.zip>
More information about the Pd-list
mailing list