@galacean/engine-physics-physx 0.9.6 → 0.9.7
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.map +1 -1
- package/dist/miniprogram.js +33 -2
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/miniprogram.js
CHANGED
|
@@ -14266,7 +14266,7 @@ var Basic2DBatcher = /*#__PURE__*/ function() {
|
|
|
14266
14266
|
// vertices
|
|
14267
14267
|
this._vertexBuffers[index] = new Buffer(engine, exports.BufferBindFlag.VertexBuffer, MAX_VERTEX_COUNT * 4 * vertexStride, exports.BufferUsage.Dynamic);
|
|
14268
14268
|
// indices
|
|
14269
|
-
this._indiceBuffers[index] = new Buffer(engine, exports.BufferBindFlag.IndexBuffer, MAX_VERTEX_COUNT * 3, exports.BufferUsage.Dynamic);
|
|
14269
|
+
this._indiceBuffers[index] = new Buffer(engine, exports.BufferBindFlag.IndexBuffer, MAX_VERTEX_COUNT * 2 * 3, exports.BufferUsage.Dynamic);
|
|
14270
14270
|
mesh.setVertexBufferBinding(this._vertexBuffers[index], vertexStride);
|
|
14271
14271
|
mesh.setIndexBufferBinding(this._indiceBuffers[index], exports.IndexFormat.UInt16);
|
|
14272
14272
|
mesh.setVertexElements(vertexElements);
|
|
@@ -28848,6 +28848,29 @@ TextureCubeLoader = __decorate([
|
|
|
28848
28848
|
""
|
|
28849
28849
|
])
|
|
28850
28850
|
], TextureCubeLoader);
|
|
28851
|
+
var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
|
|
28852
|
+
var AnimationClipLoader = function AnimationClipLoader() {
|
|
28853
|
+
return Loader.apply(this, arguments);
|
|
28854
|
+
};
|
|
28855
|
+
_inherits$1(AnimationClipLoader, Loader);
|
|
28856
|
+
var _proto = AnimationClipLoader.prototype;
|
|
28857
|
+
_proto.load = function load(item, resourceManager) {
|
|
28858
|
+
var _this = this;
|
|
28859
|
+
return new miniprogram$5.AssetPromise(function(resolve, reject) {
|
|
28860
|
+
_this.request(item.url, _extends$1({}, item, {
|
|
28861
|
+
type: "arraybuffer"
|
|
28862
|
+
})).then(function(data) {
|
|
28863
|
+
return decode(data, resourceManager.engine).then(resolve);
|
|
28864
|
+
}).catch(reject);
|
|
28865
|
+
});
|
|
28866
|
+
};
|
|
28867
|
+
return AnimationClipLoader;
|
|
28868
|
+
}(miniprogram$5.Loader);
|
|
28869
|
+
AnimationClipLoader = __decorate([
|
|
28870
|
+
miniprogram$5.resourceLoader(miniprogram$5.AssetType.AnimationClip, [
|
|
28871
|
+
"ani"
|
|
28872
|
+
])
|
|
28873
|
+
], AnimationClipLoader);
|
|
28851
28874
|
var SceneLoader = /*#__PURE__*/ function(Loader) {
|
|
28852
28875
|
var SceneLoader = function SceneLoader() {
|
|
28853
28876
|
return Loader.apply(this, arguments);
|
|
@@ -28916,6 +28939,14 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
|
|
|
28916
28939
|
if (shadow.shadowDistance != undefined) scene.shadowDistance = shadow.shadowDistance;
|
|
28917
28940
|
if (shadow.shadowCascades != undefined) scene.shadowCascades = shadow.shadowCascades;
|
|
28918
28941
|
}
|
|
28942
|
+
var fog = data.scene.fog;
|
|
28943
|
+
if (fog) {
|
|
28944
|
+
if (fog.fogMode != undefined) scene.fogMode = fog.fogMode;
|
|
28945
|
+
if (fog.fogStart != undefined) scene.fogStart = fog.fogStart;
|
|
28946
|
+
if (fog.fogEnd != undefined) scene.fogEnd = fog.fogEnd;
|
|
28947
|
+
if (fog.fogDensity != undefined) scene.fogDensity = fog.fogDensity;
|
|
28948
|
+
if (fog.fogColor != undefined) scene.fogColor.copyFrom(fog.fogColor);
|
|
28949
|
+
}
|
|
28919
28950
|
return Promise.all([
|
|
28920
28951
|
ambientLightPromise,
|
|
28921
28952
|
backgroundPromise
|
|
@@ -35714,7 +35745,7 @@ function _interopNamespace(e) {
|
|
|
35714
35745
|
}
|
|
35715
35746
|
var CoreObjects__namespace = /*#__PURE__*/ _interopNamespace(CoreObjects);
|
|
35716
35747
|
//@ts-ignore
|
|
35717
|
-
var version = "0.9.
|
|
35748
|
+
var version = "0.9.7";
|
|
35718
35749
|
console.log("Galacean engine version: " + version);
|
|
35719
35750
|
for(var key in CoreObjects__namespace){
|
|
35720
35751
|
CoreObjects.Loader.registerClass(key, CoreObjects__namespace[key]);
|