Hi,
my want to use the new tessellation control and tessellation evaluation
shaders that are new in OpenGL 4.
Is there support for them in OSG trunk?
I only found
VertexProgramm
(http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src/osg/VertexProgram.cpp
)
and
FragmentProgramm (
http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src/osg/FragmentProgram.cpp
)
Also I understand there is another way to create shaders, shown in the
geometry shader example
(http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osggeometryshaders/osggeometryshaders.cpp#L116)
.
I noted that "*new* osg::Shader( osg::Shader::GEOMETRY, geomSource )"
actually uses open GL constants
(http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/include/osg/Shader#L87).
Since osg::Shader seams pretty generic is it a good idea to just use the
matching GL constant ( something like GL_TESSELLATION_CONTROL_SHADER or so)?
I guess my question is: How do I use tessellation shaders with OSG?
Best regards
Waldemar
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org