Hi Adrien,

On 6/10/10 18:07 , BARRAL Adrien wrote:
> TexMat* tmat = new TexMat;
> tmat->setMatrix(Matrix::scale(100,100,1));
>...
> Now, I enable my shaders programs, and my texture is scaled to the plane's 
> size (not repeated).
> Here is my vertex shader :
> 
> Code:
> ...
> gl_TexCoord[0] = gl_MultiTexCoord0;
> ...
> Why these shaders doesn't repeat my texture pattern ?

You have to implement the multiplication of the texcoord with the texture 
matrix.  The
programmable pipeline doesn't do the texcoord transformation for you.
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to