瀏覽代碼

onload Textures

Sebastien Vandenberghe 6 年之前
父節點
當前提交
5ba6179a72
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Engines/webgpuEngine.ts

+ 2 - 0
src/Engines/webgpuEngine.ts

@@ -1098,6 +1098,8 @@ export class WebGPUEngine extends Engine {
                 aspect: "all",
             });
             webglEngineTexture.dispose();
+
+            onLoad && onLoad();
         };
         webglEngineTexture = this._decodeEngine.createCubeTexture(rootUrl, scene, files, noMipmap, onLoadInternal, onError, format, forcedExtension, createPolynomials, lodScale, lodOffset, fallback, excludeLoaders);