API

Function loadHdrEnvironment

  • Loads a Radiance .hdr (RGBE) equirectangular panorama and builds GPU-ready IBL textures (prefiltered specular cubemap, BRDF LUT, and irradiance spherical harmonics), then attaches them to the scene and queues optional skybox/ground background renderables.

    Parameters

    • scene: SceneContext

      The scene to receive the environment textures and background renderables.

    • url: string

      URL of the .hdr file to fetch.

    • Optionaloptions: HdrLoadOptions

      Optional face size, skybox, and ground settings.

    Returns Promise<EnvironmentTextures>

    The assembled environment textures (also stored on the scene).