Hi, The name texUnit0 comes from the shader, which you're providing. The texture unit index (which my example snippet sets to 0) comes from your scene graph, which you said came from osgOcean, and will almost certainly be 0 for a diffuse map. If I was trying to check that, I'd run the application through APITrace and see which units have textures bound to them during the draw calls for the meshes I'm interested in, but that might not be the simplest approach.
Cheers, Chris ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76795#76795 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org