Clash Blueprint Engine API
    Preparing search index...

    Function toGltf

    • Serialize a Scene3DModel to a self-contained glTF 2.0 JSON string (geometry + colors embedded as a base64 data-URI buffer). Pure and framework-free — no three.js, no browser APIs — so the same output is produced on web, CLI or tests. Each box/wall is a node instancing one shared unit cube, transformed by TRS and coloured by a per-material baseColorFactor.

      Parameters

      Returns string