Hi, suppose I'm loading two osg models, both using textures and both define their texture with the same texturing unit, will the system change one of texture texturing unit, or every time one of the object is drawn the texture will be replaced on the graphic card, or will there be an bug and both will use the same texture?
second, how do I know for a drawn vertex or fragment in the relevant shader, which texturing units are attached to it? (should I pass this data using uniforms?) and forth, how do I know in the shader if texturing unit or light source is enabled? (again, should I pass this data using uniforms?) thanks a lot, Guy.
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/