Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
Geometry creation using tessellation shaders.

VSG extension This example shows how to generate geometry using tessellation shaders.

This simple example shows how to use tessellation shaders.

The basic shape is an icosahedron and sliders allow to modify tessellation parameters. When inner parameter change the number of generated point inside each triangles while outer parameter change the number of generated point on each edges. This example subdivides the icosahedron in such a way that it approaches a perfect sphere.

FILES:

    • Inventor/Shaders/TessellationShader/TessellationShader.cxx
    • Inventor/Shaders/TessellationShader/TessShaderVtx.glsl
    • Inventor/Shaders/TessellationShader/TessShaderTessControl.glsl
    • Inventor/Shaders/TessellationShader/TessShaderTessEvaluation.glsl
    • Inventor/Shaders/TessellationShader/TessShaderGeom.glsl
    • Inventor/Shaders/TessellationShader/TessShaderFrag.glsl

SEE ALSO

SoShaderObject SoShaderProgram SoShaderParameter SoTessellationControlShader SoTessellationEvaluationShader

SCREENSHOT: