API

Function loadSkybox

  • Load a skybox cube texture and register it on the scene. The auto-builder will create the pipeline and render it.

    Parameters

    • scene: SceneContext

      Scene to register the skybox in

    • baseUrl: string

      Base URL for cube faces (e.g., 'textures/skybox')

    • ext: string

      File extension (e.g., '.jpg', '.png')

    • size: number = 100

      Box size (default 100, matches Babylon)

    Returns Promise<void>