I have a simple question but couldn't find an answer.

My geode is assigned a geometry shader that starts with

layout(lines_adjacency)in;
For drawing geometry 1 I use
geometry1->addPrimitiveSet(newosg::DrawArrays(osg::PrimitiveSet::LINE_STRIP_ADJACENCY,0,count));

That works absolutely fine.

For drawing geometry 2 in the same geode I use
geometry2->addPrimitiveSet(newosg::DrawArrays(osg::PrimitiveSet::TRIANGLE_FAN,0,count));

Is the geometry shader just skipped for the second geometry? Or must I assign an individual shader for each geometry?
This might be a big slowdown because I have really many of those geodes.
Is it possible to define 2 geometry shaders with different layouts in one shader program?

Thanks for any hints.

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

Reply via email to