100

Controlling appearance
PolygonAttributes Example Code

  • Set culling and polygon modes
  • Appearance app = new Appearance( );
    PolygonAttributes pa = new PolygonAttributes( );
    pa.setCullFace( PolygonAttributes.CULL_NONE );
    pa.setPolygonMode( PolygonAttributes.POLYGON_FILL );
    app.setPolygonAttributes( pa );