@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/miniprogram.js
CHANGED
|
@@ -1669,13 +1669,13 @@ var GLTFEntityParser = /*#__PURE__*/ function(GLTFParser) {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
sceneRoots[i] = rootEntity;
|
|
1671
1671
|
}
|
|
1672
|
+
// @ts-ignore
|
|
1673
|
+
sceneRoots[i]._hookResource = glTFResource;
|
|
1674
|
+
// @ts-ignore
|
|
1675
|
+
glTFResource._addReferCount(1);
|
|
1672
1676
|
}
|
|
1673
1677
|
glTFResource.sceneRoots = sceneRoots;
|
|
1674
1678
|
glTFResource.defaultSceneRoot = sceneRoots[sceneID];
|
|
1675
|
-
// @ts-ignore
|
|
1676
|
-
glTFResource.defaultSceneRoot._hookResource = glTFResource;
|
|
1677
|
-
// @ts-ignore
|
|
1678
|
-
glTFResource._addReferCount(1);
|
|
1679
1679
|
};
|
|
1680
1680
|
return GLTFEntityParser;
|
|
1681
1681
|
}(GLTFParser);
|
|
@@ -4543,6 +4543,10 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
|
|
|
4543
4543
|
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
|
|
4544
4544
|
});
|
|
4545
4545
|
promises.push(ambientLightPromise);
|
|
4546
|
+
} else {
|
|
4547
|
+
scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
|
|
4548
|
+
scene.ambientLight.specularIntensity = ambient.specularIntensity;
|
|
4549
|
+
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
|
|
4546
4550
|
}
|
|
4547
4551
|
var background = data.scene.background;
|
|
4548
4552
|
scene.background.mode = background.mode;
|
package/dist/module.js
CHANGED
|
@@ -1664,13 +1664,13 @@ var GLTFEntityParser = /*#__PURE__*/ function(GLTFParser) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
sceneRoots[i] = rootEntity;
|
|
1666
1666
|
}
|
|
1667
|
+
// @ts-ignore
|
|
1668
|
+
sceneRoots[i]._hookResource = glTFResource;
|
|
1669
|
+
// @ts-ignore
|
|
1670
|
+
glTFResource._addReferCount(1);
|
|
1667
1671
|
}
|
|
1668
1672
|
glTFResource.sceneRoots = sceneRoots;
|
|
1669
1673
|
glTFResource.defaultSceneRoot = sceneRoots[sceneID];
|
|
1670
|
-
// @ts-ignore
|
|
1671
|
-
glTFResource.defaultSceneRoot._hookResource = glTFResource;
|
|
1672
|
-
// @ts-ignore
|
|
1673
|
-
glTFResource._addReferCount(1);
|
|
1674
1674
|
};
|
|
1675
1675
|
return GLTFEntityParser;
|
|
1676
1676
|
}(GLTFParser);
|
|
@@ -4538,6 +4538,10 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
|
|
|
4538
4538
|
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
|
|
4539
4539
|
});
|
|
4540
4540
|
promises.push(ambientLightPromise);
|
|
4541
|
+
} else {
|
|
4542
|
+
scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
|
|
4543
|
+
scene.ambientLight.specularIntensity = ambient.specularIntensity;
|
|
4544
|
+
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
|
|
4541
4545
|
}
|
|
4542
4546
|
var background = data.scene.background;
|
|
4543
4547
|
scene.background.mode = background.mode;
|