Use a geometry shader

From JReality Wiki
Jump to: navigation, search

JavaDoc: DefaultGeometryShader


In jReality one can control the display of points, edges, and faces of a geometric primitive with separate shaders. Use an instance of DefaultGeometryShader to control whether each of these element types is to be displayed.


In the absence of a proper tutorial example: See the tutorial example Introduction To Transformations for a simple example showing how to set all eight possible combinations of displaying vertices -- edges -- faces.


Previous: Developer Tutorial Developer Tutorial: Contents Next: Use the default point shader