Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Narrow source.webgl from WebGLShaderSources | undefined to WebGLShaderSources, throwing with a diagnostic message if the source has no GLSL strings.

      Use this at construction sites that intrinsically require the GLSL backend (the GLSL ShaderMaterial wrappers in picking-material.ts, the TSL↔GLSL parity harness). Production shaders all ship webgl today, so the throw never fires in practice — it's the runtime invariant that the optional type doesn't express on its own.

      Parameters

      Returns WebGLShaderSources