Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...
    • Construct a THREE.WebGLRenderer from a WebGL2 context obtained via canvas.getContext('webgl2', config.webgl.context).

      Outside debug mode renderer.debug.checkShaderErrors is turned OFF. With it on, three reads getProgramInfoLog and both shader logs straight after every link — a synchronous GPU round trip that defeats the driver's parallel compile and measured 15-91 ms of main-thread stall on a cold start. A broken shader still surfaces without it: the browser logs the failed link as a WebGL warning and the draw is skipped.

      Returns the renderer plus a RendererCapabilities snapshot. The caller wires materialManager / HDR / clear color / initial resize.

      Parameters

      Returns Promise<CreatedRenderer>