Hi, Linda
Check if you set up texture attributes, modes and uniforms values for samplers
correctly.
Ex.:
stateset->setTextureAttributeAndModes(0,textureOnUnit0,
osg::StateAttribute::ON);
stateset->setTextureAttributeAndModes(1,textureOnUnit1,
osg::StateAttribute::ON);
stateset->addUniform("tex0",0);
stateset->addUniform("tex1",1);
in shader:
sampler2D tex0;
sampler2D tex1;
etc.
Cheers,
Sergey.
15.03.2011, 16:49, "Linda Lee" <[email protected]>:
> Hi,
>
> Has anyone encountered this problem where only the first texture at layer 0
> seems to successfully passed to the shader code but not the other textures
> with textureID of 1, 2, ... ?
>
> Thank you!
>
> Cheers,
> Linda
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=37622#37622
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org