Taos API Reference
    Preparing search index...

    Function loadEnvironmentTexture

    • Loads an HDR environment from a URL, dispatching on file extension: .exr uses the OpenEXR loader, anything else (.hdr) the Radiance loader. Both produce an identical rgba16float 2D Texture with a full mip pyramid, so the result drops straight into IBL prefilter / sky panorama paths.

      Parameters

      • device: GPUDevice

        WebGPU device.

      • url: string

        URL of a .hdr or .exr environment map.

      Returns Promise<Texture>

      The decoded environment as a 2D Texture.