<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I have a simple question but couldn't find an answer.<br>
    <br>
    My geode is assigned a geometry shader that starts with<br>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">    layout</span>(lines_adjacency)<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">in</span>;
 </pre>
    For drawing geometry 1 I use <br>
    <span style=" color:#c0c0c0;"> </span>   
    geometry1->addPrimitiveSet(<span style=" color:#808000;">new</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span
      style=" color:#800080;">DrawArrays</span>(<span style="
      color:#800080;">osg</span>::<span style=" color:#800080;">PrimitiveSet</span>::<span
      style=" color:#800080;">LINE_STRIP_ADJACENCY</span>,<span style="
      color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>,<span
      style=" color:#c0c0c0;"> </span>count));
    <br>
    <br>
    That works absolutely fine.<br>
    <br>
    For drawing geometry 2 in the same geode I use <br>
    <span style=" color:#c0c0c0;"> </span>   
    geometry2->addPrimitiveSet(<span style=" color:#808000;">new</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span
      style=" color:#800080;">DrawArrays</span>(<span style="
      color:#800080;">osg</span>::<span style=" color:#800080;">PrimitiveSet</span>::<span
      style=" color:#800080;">TRIANGLE_FAN</span>,<span style="
      color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>,<span
      style=" color:#c0c0c0;"> </span>count));
    <br>
    <br>
    Is the geometry shader just skipped for the second geometry? Or must
    I assign an individual shader for each geometry?<br>
    This might be a big slowdown because I have really many of those
    geodes.<br>
    Is it possible to define 2 geometry shaders with different layouts
    in one shader program?<br>
    <br>
    Thanks for any hints.<br>
    <br>
    - Werner -<br>
  </body>
</html>