Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewerOptions

Rendering options for a Viewer

Examples of the different highlight modes:

alt text

Hierarchy

  • ViewerOptions

Index

Properties

Optional alphaChannel

alphaChannel: boolean = false

If true, the drawing buffer will have an alpha channel which can be useful for compositing with the page or for retrieving transparent image snapshots. Default false

Optional antiAliasing

antiAliasing: boolean = true

Use anti aliasing. Default true

Optional enableTransparencyWBOIT

enableTransparencyWBOIT: boolean = true

Whether to enable high quality transparency using a technique called "Weighted Blended Order-Independent Transparency"

Optional globalAmbientIntensity

globalAmbientIntensity: number

Specify the global ambient intensity

Optional globalDefaultSpecularIntensity

globalDefaultSpecularIntensity: number

Specify the global default specular intensity

Optional highlightMode

highlightMode: HighlightMode = HighlightMode.DEPTH_BASED_DIMMING

Whether to enable highlighting of parts using a halo

Optional pixelScaleFactor

pixelScaleFactor: number

Use a user defined pixel scale factor

Optional preserveDrawingBuffer

preserveDrawingBuffer: boolean = false

preserveDrawingBuffer

Optional wboitMode

wboitMode: WBOITMode = WBOITMode.OPAQUE_DEFAULT_FRAMEBUFFER

Specify how to render opaque parts when there are transparent parts in the scene and enableTransparencyWBOIT is enabled.

Generated using TypeDoc