134

Controlling appearance
RenderingAttributes example code

  • Create RenderingAttributes to set the depth and alpha modes
    RenderingAttributes myRA = new RenderingAttributes( );
    myRA.setDepthBufferEnable( false );
    myRA.setAlphaTestFunction( RenderingAttributes.NEVER );
  • Create Appearance, set the rendering attributes, and assemble the shape
    Appearance myAppear = new Appearance( );
    myAppear.setRenderingAttributes( myRA );
    Shape3D myShape = new Shape3D( myGeom, myAppear );