Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function assertNoShaderErrors

    • Assert no shader compile / link / attribute / uniform errors are present in the buffered console messages. WebGL surfaces shader issues asynchronously (the browser logs to console), so this is the canonical way to detect them after a render.

      The patterns match strings emitted by Chromium's WebGL implementation for compile/link failures and missing-attribute warnings. We only scan errors/warnings (not normal info logs) so routine material names such as point_glsl_additive... don't become false positives.

      Parameters

      • page: Page

      Returns Promise<void>