Show
Ignore:
Timestamp:
10/10/09 11:41:28 (5 years ago)
Author:
robert
Message:

From Stephane Lamoliatte, "Here is a patch wich improves the support for geometry shaders in OpenSceneGraph.
It adds new PrimitiveSet? constants for the specific geometry shader primitive types :

  • LINES_ADJACENCY
  • LINE_STRIP_ADJACENCY
  • TRIANGLES_ADJACENCY
  • TRIANGLE_STRIP_ADJACENCY

It also adds some missing features to the glsl reader plug'in.
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/glsl/ReaderWriterGLSL.cpp

    r9926 r10627  
    1818            supportsExtension("frag","OpenGL Shader Language format"); 
    1919            supportsExtension("vert","OpenGL Shader Language format"); 
     20            supportsExtension("geom","OpenGL Shader Language format"); 
    2021            supportsExtension("glsl","OpenGL Shader Language format"); 
    2122        } 
     
    7273                    if (ext == "frag") shader->setType(osg::Shader::FRAGMENT); 
    7374                    if (ext == "vert") shader->setType(osg::Shader::VERTEX); 
     75                    if (ext == "geom") shader->setType(osg::Shader::GEOMETRY); 
    7476                } 
    7577            }