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
>> [email protected]
>> 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
> [email protected]
> 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


//
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect MyTex;

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

Attachment: multitexture_texture.pd
Description: application/puredata

//

uniform sampler2D MyTex;

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

_______________________________________________
GEM-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/gem-dev

Reply via email to