This program demonstrates the use of geometry shader in DirectX 11.
Cylinder shape object is drawn originally as a circle. Then the circle’s vertices are modified by geometry shader into a cylinder.
Object is rendered in wireframe mode to show the structure of the cylinder object.
Back-face culling is disabled.
Uses fixed-axis rotation.
Program file can be downloaded here.
Requirements: DirectX 11 supported graphics card, Windows 7/8/8.1/10/11, Visual C++ Redistributable Packages for Visual Studio 2013(x86).
Control:
Left-click anywhere in the scene then hold left-click and drag the mouse to rotate the object.
Platform: Windows
Programming Language: C/C++, HLSL