OSRS-Environment-Exporter
                                
                                
                                
                                    OSRS-Environment-Exporter copied to clipboard
                            
                            
                            
                        [REQUEST] Combine glTF, bin file, and textures directory into one glb file
Requirement: Make it possible to turn this off for debugging.
GLB Docs: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#glb-file-format-specification https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/Specification.adoc#glb-file-format-specification
I need this.
I personally just use gltf.report for this. I took a GLTF + bin file exported by this tool and used the unpartition() pipeline to combine it into a single GLB file. The full script I used was:
    import { prune, dedup, resample, weld, unpartition } from '@gltf-transform/functions';
    await document.transform(
        weld({exhaustive: true}),
        unpartition(),
        dedup(),
        resample(),
        prune()
    );