On 24 October 2013 14:41, Glenn Waldron <[email protected]> wrote:

> Well, Paul did ask for per-context uniforms. But re-reading the original
> post, it's evident that the GC ID is not available during cull anyway ...
> so scratch that idea :)
>

The CullVisitor::getRenderInfo() method could be used to access to the
osg::State object and hence ContextID that is relevant to the current cull
traversal.

Alternatively you could do CullVisitor::getCurrentCamera() and get its'
GraphicsContext which has the State and the hence ContextID.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to