@galacean/engine-loader 1.0.0-beta.20 → 1.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +8 -4
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +8 -4
- package/dist/module.js +8 -4
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
- package/types/gltf/GLTFUtil.d.ts +3 -3
- package/types/gltf/parser/{GLTFJSONParser.d.ts → GLTFSchemaParser.d.ts} +1 -1
- package/types/ktx2/BinomialLLCTranscoder/BinomialLLCTranscoder.d.ts +13 -0
- package/types/ktx2/BinomialLLCTranscoder/TranscodeWorkerCode.d.ts +33 -0
- package/types/ktx2/KhronosTranscoder/KhronosTranscoder.d.ts +17 -0
- package/types/ktx2/KhronosTranscoder/TranscoderWorkerCode.d.ts +34 -0
- package/types/ktx2/TranscodeResult.d.ts +10 -0
- package/types/ktx2/constants.d.ts +7 -0
- package/types/ktx2/zstddec.d.ts +62 -0
package/dist/main.js
CHANGED
|
@@ -1668,13 +1668,13 @@ var GLTFEntityParser = /*#__PURE__*/ function(GLTFParser) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
sceneRoots[i] = rootEntity;
|
|
1670
1670
|
}
|
|
1671
|
+
// @ts-ignore
|
|
1672
|
+
sceneRoots[i]._hookResource = glTFResource;
|
|
1673
|
+
// @ts-ignore
|
|
1674
|
+
glTFResource._addReferCount(1);
|
|
1671
1675
|
}
|
|
1672
1676
|
glTFResource.sceneRoots = sceneRoots;
|
|
1673
1677
|
glTFResource.defaultSceneRoot = sceneRoots[sceneID];
|
|
1674
|
-
// @ts-ignore
|
|
1675
|
-
glTFResource.defaultSceneRoot._hookResource = glTFResource;
|
|
1676
|
-
// @ts-ignore
|
|
1677
|
-
glTFResource._addReferCount(1);
|
|
1678
1678
|
};
|
|
1679
1679
|
return GLTFEntityParser;
|
|
1680
1680
|
}(GLTFParser);
|
|
@@ -4542,6 +4542,10 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
|
|
|
4542
4542
|
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
|
|
4543
4543
|
});
|
|
4544
4544
|
promises.push(ambientLightPromise);
|
|
4545
|
+
} else {
|
|
4546
|
+
scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
|
|
4547
|
+
scene.ambientLight.specularIntensity = ambient.specularIntensity;
|
|
4548
|
+
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
|
|
4545
4549
|
}
|
|
4546
4550
|
var background = data.scene.background;
|
|
4547
4551
|
scene.background.mode = background.mode;
|