103

Controlling appearance
RenderingAttributes Example Code

  • Set depth buffer and alpha modes
  • Appearance app = new Appearance( );
    RenderingAttributes ra = new RenderingAttributes( );
    ra.setDepthBufferEnable( true );
    ra.setalphaTestFunction( RenderingAttributes.ALWAYS );
    app.setRenderingAttributes( ra );