babylon.quarks - v1.0.0
    Preparing search index...

    Function ensureEnvAtlasFromCube

    • Ensures a 3×2 env atlas exists for a CubeTexture in scene. Returns a cached atlas synchronously when available; otherwise starts (or joins) an async build and invokes onReady when the atlas is usable. A cube disposed before its build finishes gets no atlas. A build that fails warns once and is not tried again until the cube's faces change or disposeEnvAtlas is called for it; cacheEnvAtlas still supplies an atlas.

      Parameters

      • cube: BaseTexture
      • scene: Scene
      • onReady: (atlas: Texture) => void

      Returns Texture | null