@galacean/engine-loader 1.0.0-beta.1 → 1.0.0-beta.4
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 +19 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +19 -1
- package/dist/module.js +19 -1
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
- package/types/gltf/GLTFResource.d.ts +3 -0
- package/types/gltf/extensions/KHR_materials_ior.d.ts +1 -0
- package/types/gltf/extensions/index.d.ts +1 -0
package/dist/miniprogram.js
CHANGED
|
@@ -2328,7 +2328,9 @@ var GLTFValidator = /*#__PURE__*/ function(GLTFParser1) {
|
|
|
2328
2328
|
return _this;
|
|
2329
2329
|
}
|
|
2330
2330
|
var _proto = GLTFResource.prototype;
|
|
2331
|
-
|
|
2331
|
+
/**
|
|
2332
|
+
* @internal
|
|
2333
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
2332
2334
|
EngineObject.prototype._onDestroy.call(this);
|
|
2333
2335
|
this.defaultSceneRoot.destroy();
|
|
2334
2336
|
this.textures = null;
|
|
@@ -4678,6 +4680,22 @@ KHR_materials_clearcoat = __decorate([
|
|
|
4678
4680
|
registerGLTFExtension("KHR_materials_clearcoat", exports.GLTFExtensionMode.AdditiveParse)
|
|
4679
4681
|
], KHR_materials_clearcoat);
|
|
4680
4682
|
|
|
4683
|
+
var KHR_materials_ior = /*#__PURE__*/ function(GLTFExtensionParser) {
|
|
4684
|
+
_inherits(KHR_materials_ior, GLTFExtensionParser);
|
|
4685
|
+
function KHR_materials_ior() {
|
|
4686
|
+
return GLTFExtensionParser.apply(this, arguments);
|
|
4687
|
+
}
|
|
4688
|
+
var _proto = KHR_materials_ior.prototype;
|
|
4689
|
+
_proto.additiveParse = function additiveParse(context, material, schema) {
|
|
4690
|
+
var _schema_ior = schema.ior, ior = _schema_ior === void 0 ? 1.5 : _schema_ior;
|
|
4691
|
+
material.ior = ior;
|
|
4692
|
+
};
|
|
4693
|
+
return KHR_materials_ior;
|
|
4694
|
+
}(GLTFExtensionParser);
|
|
4695
|
+
KHR_materials_ior = __decorate([
|
|
4696
|
+
registerGLTFExtension("KHR_materials_ior", exports.GLTFExtensionMode.AdditiveParse)
|
|
4697
|
+
], KHR_materials_ior);
|
|
4698
|
+
|
|
4681
4699
|
var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(GLTFExtensionParser) {
|
|
4682
4700
|
_inherits(KHR_materials_pbrSpecularGlossiness, GLTFExtensionParser);
|
|
4683
4701
|
function KHR_materials_pbrSpecularGlossiness() {
|
package/dist/module.js
CHANGED
|
@@ -2323,7 +2323,9 @@ var GLTFValidator = /*#__PURE__*/ function(GLTFParser1) {
|
|
|
2323
2323
|
return _this;
|
|
2324
2324
|
}
|
|
2325
2325
|
var _proto = GLTFResource.prototype;
|
|
2326
|
-
|
|
2326
|
+
/**
|
|
2327
|
+
* @internal
|
|
2328
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
2327
2329
|
EngineObject.prototype._onDestroy.call(this);
|
|
2328
2330
|
this.defaultSceneRoot.destroy();
|
|
2329
2331
|
this.textures = null;
|
|
@@ -4673,6 +4675,22 @@ KHR_materials_clearcoat = __decorate([
|
|
|
4673
4675
|
registerGLTFExtension("KHR_materials_clearcoat", GLTFExtensionMode.AdditiveParse)
|
|
4674
4676
|
], KHR_materials_clearcoat);
|
|
4675
4677
|
|
|
4678
|
+
var KHR_materials_ior = /*#__PURE__*/ function(GLTFExtensionParser) {
|
|
4679
|
+
_inherits(KHR_materials_ior, GLTFExtensionParser);
|
|
4680
|
+
function KHR_materials_ior() {
|
|
4681
|
+
return GLTFExtensionParser.apply(this, arguments);
|
|
4682
|
+
}
|
|
4683
|
+
var _proto = KHR_materials_ior.prototype;
|
|
4684
|
+
_proto.additiveParse = function additiveParse(context, material, schema) {
|
|
4685
|
+
var _schema_ior = schema.ior, ior = _schema_ior === void 0 ? 1.5 : _schema_ior;
|
|
4686
|
+
material.ior = ior;
|
|
4687
|
+
};
|
|
4688
|
+
return KHR_materials_ior;
|
|
4689
|
+
}(GLTFExtensionParser);
|
|
4690
|
+
KHR_materials_ior = __decorate([
|
|
4691
|
+
registerGLTFExtension("KHR_materials_ior", GLTFExtensionMode.AdditiveParse)
|
|
4692
|
+
], KHR_materials_ior);
|
|
4693
|
+
|
|
4676
4694
|
var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(GLTFExtensionParser) {
|
|
4677
4695
|
_inherits(KHR_materials_pbrSpecularGlossiness, GLTFExtensionParser);
|
|
4678
4696
|
function KHR_materials_pbrSpecularGlossiness() {
|