Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Render the TSL path of a registered shader via WebGPURenderer (WebGL backend by default; real WebGPU with { native: true }) and return both the readback pixels and the generated shader strings.

      Capturing the GLSL strings requires walking the WebGLBackend's pipeline cache after the render completes — there's no public "give me the source" API, so we read the strings off the NodeBuilderState that the backend stashes per-RenderObject.

      Parameters

      • shaderName: string
      • opts: { native?: boolean } = {}

      Returns Promise<{ pixels: Uint8Array; vertexShader: string; fragmentShader: string }>