API

Variable DefaultViewerOptionsConst

DefaultViewerOptions: {
    animationAutoPlay: false;
    animationSpeed: 1;
    autoSuspendRendering: true;
    cameraAutoOrbit: { delay: 2000; enabled: false; speed: 0.05 };
    clearColor: [0, 0, 0, 0];
    environmentConfig: { blur: 0.3; intensity: 1; rotation: 0 };
    environmentLighting: "auto";
    environmentSkybox: "none";
    postProcessing: {
        contrast: 1;
        exposure: 1;
        ssao: "auto";
        toneMapping: "neutral";
    };
    shadowConfig: { quality: "none" };
    useOpenPBR: false;
    useRightHandedSystem: false;
} = DefaultViewerBaseOptions

The default options for the Viewer.

Type Declaration

  • ReadonlyanimationAutoPlay: false
  • ReadonlyanimationSpeed: 1
  • ReadonlyautoSuspendRendering: true
  • ReadonlycameraAutoOrbit: { delay: 2000; enabled: false; speed: 0.05 }
  • ReadonlyclearColor: [0, 0, 0, 0]
  • ReadonlyenvironmentConfig: { blur: 0.3; intensity: 1; rotation: 0 }
  • ReadonlyenvironmentLighting: "auto"
  • ReadonlyenvironmentSkybox: "none"
  • ReadonlypostProcessing: { contrast: 1; exposure: 1; ssao: "auto"; toneMapping: "neutral" }
  • ReadonlyshadowConfig: { quality: "none" }
  • ReadonlyuseOpenPBR: false
  • ReadonlyuseRightHandedSystem: false