Hi

use setTextureMode(id, GL_TEXTURE_2D, osg::StateAttribute::OFF) on your group 
stateset, with id set to texture unit you binded your texture to. It prevents 
fixed function from using your texture, and dont have any effect on rendering 
with shaders.

Cheers.

12.10.2012, 16:20, "Filip Arlet" <fili...@seznam.cz>:
> Hi,
>
> I pass data to my shader in texture which is attached to Group StateSet. If I 
> want to render something in fixed pipilene function, under that StateSet. It 
> will use that texture, but I do not want to do it. I just want to pass 
> sampler to shader, but not to texture fixed pipeline. Is there something to 
> do this ? Or do I have to disable Texture Unit everytime I want to draw 
> something in fixed pipeline mode ?
>
> Thank you!
>
> Cheers,
> Filip
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=50576#50576
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to