Hi,

OSGOcean is probably setting up the necessary fixed-function stuff to put its 
texture in texture unit zero, but you'll need to tell the fragment shader that 
its texUnit0 uniform refers to that texture unit. It should be enough just to 
add a uniform to the same stateset as you're adding your shader that sets 
texUnit0 to 0 e.g.

Code:
stateSet->addUniform(new osg::Uniform("texUnit0", 0));



Cheers,
Chris

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76791#76791





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to