##Introduction to Geometry shader programming
CMake Build instructions
- Out-of-source build :
git clone [email protected]:Modelisation5ETI/TP4_GeometryShader.git && \
mkdir TP4_GeometryShader-build && cd TP4_GeometryShader-build && \
cmake ../TP4_GeometryShader && \
make -j
- QtCreator :
git clone [email protected]:Modelisation5ETI/TP4_GeometryShader.git && \
mkdir TP4_GeometryShader-build && cd TP4_GeometryShader-build && \
qtcreator ../TP4_GeometryShader
Then configure project using QtCreator API :
- Set the build directory to TP4_GeometryShader-build/
- Run CMake and build project
Implementation
./_DebugNormal
The geometry shader outputs a line for each vertex normal.
Use arrows UP/DOWN to increase/decrease the normals size.
./_Culling
Implement culling using geometry shader.
Use arrow UP or DOWN to change the culling point position around the mesh.
./_Splitting
Process different transformation using normals. Vertex and triangles are modified by the geometry shader.
Use arrows UP/DOWN to modify the alpha parameter in order to increase the transform effect.
Use 0,1, or 2 to process different transforms :
- 0 : Translate vertices towards the triangle center.
- 1 : Translate triangle along their normal.
- 2 : Erode/Dilate the mesh.