Threepipe gltf-transform Plugins
    Preparing search index...

    Class GLTFLightsAmbientExtensionGP

    WEBGI_lights_ambient (ambient and hemisphere lights, see GLTFLightsAmbientExtension) for gltf-transform. The lights are in an array at the root of the file and nodes use them by index, as in KHR_lights_punctual, so the generic extension class (made by createGenericExtensionClass, which keeps the data of materials, meshes, nodes and scenes) cannot keep them. This class is modelled on KHRLightsPunctual of @gltf-transform/extensions.

    const io = new WebIO().registerExtensions([...ALL_EXTENSIONS, GLTFLightsAmbientExtensionGP])
    

    GLTFDracoExportPlugin.gltfTransformExtensions has it.

    Hierarchy

    • Extension
      • GLTFLightsAmbientExtensionGP
    Index
    extensionName: "WEBGI_lights_ambient" = NAME

    Official name of the extension.

    EXTENSION_NAME: "WEBGI_lights_ambient" = NAME

    Official name of the extension.