[GEM-dev] [pix_multitexture] and rectangle texture

Jack jack at rybn.org
Wed Aug 28 11:17:58 CEST 2013


Le 27/08/2013 20:36, Jack a écrit :
> Le 27/08/2013 19:26, Jack a écrit :
>> Hello,
>>
>> [pix_multitexture] seems to work only with normilized texture. Am I right ?
>> It would be nice to have a [pix_multitexture] working with rectangle
>> texture (if possible).
>> ++
>>
>> Jack
>>
>>
>>
>> _______________________________________________
>> GEM-dev mailing list
>> GEM-dev at iem.at
>> http://lists.puredata.info/listinfo/gem-dev
> Forgot to add :
> I'm on Ubuntu 13.04
> Pd Pd 0.45.0test 2
> GEM: ver: 0.93.git 374f713
> ++
>
> Jack
>
>
>
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev
Here an example where [pix_texture] and [pix_multitexture 1] have
different behaviors.
I expect the same behavior when I load an image when texture is
normalized or rectangle, maybe am I wrong ?
If I am wrong, someone can explain why the behavior is different ?
Thanx.
++

Jack


-------------- next part --------------
//
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect MyTex;

void main (void)
{
 vec4 color = texture2DRect(MyTex, gl_TexCoord[0].st);
 gl_FragColor = color;
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: multitexture_texture.pd
Type: application/puredata
Size: 4579 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20130828/4245480b/attachment.bin>
-------------- next part --------------
//

uniform sampler2D MyTex;

void main (void)
{
 vec4 color = texture2D(MyTex, gl_TexCoord[0].st);
 gl_FragColor = color;
}



More information about the GEM-dev mailing list