Function loadHdrEnvironment
-
loadHdrEnvironment(
scene: SceneContext,
url: string,
options?: HdrLoadOptions,
): Promise<EnvironmentTextures>Parameters
- scene: SceneContext
The scene to receive the environment textures and background renderables.
- url: string
URL of the
.hdrfile to fetch. Optionaloptions: HdrLoadOptionsOptional face size, skybox, and ground settings.
Returns Promise<EnvironmentTextures>
The assembled environment textures (also stored on the scene).
- scene: SceneContext
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.