|
@@ -51935,7 +51935,7 @@ var BABYLON;
|
|
|
/**
|
|
|
* This represents a GPU particle system in Babylon
|
|
|
* This is the fastest particle system in Babylon as it uses the GPU to update the individual particle data
|
|
|
- * @see https://www.babylonjs-playground.com/#PU4WYI#2
|
|
|
+ * @see https://www.babylonjs-playground.com/#PU4WYI#4
|
|
|
*/
|
|
|
var GPUParticleSystem = /** @class */ (function () {
|
|
|
/**
|
|
@@ -52332,7 +52332,7 @@ var BABYLON;
|
|
|
this._currentRenderId = this._scene.getRenderId();
|
|
|
// Get everything ready to render
|
|
|
this._initialize();
|
|
|
- this._currentActiveCount = Math.min(this._activeCount, this._currentActiveCount + this.emitRate);
|
|
|
+ this._currentActiveCount = Math.min(this._activeCount, this._currentActiveCount + (this.emitRate * this._timeDelta) | 0);
|
|
|
// Enable update effect
|
|
|
this._engine.enableEffect(this._updateEffect);
|
|
|
this._engine.setState(false);
|
|
@@ -87890,6 +87890,9 @@ var BABYLON;
|
|
|
NullEngine.prototype.getLockstepMaxSteps = function () {
|
|
|
return this._options.lockstepMaxSteps;
|
|
|
};
|
|
|
+ NullEngine.prototype.getHardwareScalingLevel = function () {
|
|
|
+ return 1.0;
|
|
|
+ };
|
|
|
NullEngine.prototype.createVertexBuffer = function (vertices) {
|
|
|
return {
|
|
|
capacity: 0,
|
|
@@ -108806,6 +108809,7 @@ var BABYLON;
|
|
|
_this._progressCallback = onProgress;
|
|
|
_this._state = BABYLON.GLTFLoaderState.Loading;
|
|
|
_this._loadData(data);
|
|
|
+ _this._checkExtensions();
|
|
|
var promises = new Array();
|
|
|
if (nodes) {
|
|
|
promises.push(_this._loadNodesAsync(nodes));
|
|
@@ -108902,6 +108906,17 @@ var BABYLON;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+ GLTFLoader.prototype._checkExtensions = function () {
|
|
|
+ if (this._gltf.extensionsRequired) {
|
|
|
+ for (var _i = 0, _a = this._gltf.extensionsRequired; _i < _a.length; _i++) {
|
|
|
+ var name_2 = _a[_i];
|
|
|
+ var extension = this._extensions[name_2];
|
|
|
+ if (!extension || !extension.enabled) {
|
|
|
+ throw new Error("Require extension " + name_2 + " is not available");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
GLTFLoader.prototype._createRootNode = function () {
|
|
|
this._rootBabylonMesh = new BABYLON.Mesh("__root__", this._babylonScene);
|
|
|
var rootNode = { _babylonMesh: this._rootBabylonMesh };
|
|
@@ -110044,8 +110059,8 @@ var BABYLON;
|
|
|
};
|
|
|
GLTFLoader.prototype._applyExtensions = function (actionAsync) {
|
|
|
for (var _i = 0, _a = GLTFLoader._Names; _i < _a.length; _i++) {
|
|
|
- var name_2 = _a[_i];
|
|
|
- var extension = this._extensions[name_2];
|
|
|
+ var name_3 = _a[_i];
|
|
|
+ var extension = this._extensions[name_3];
|
|
|
if (extension.enabled) {
|
|
|
var promise = actionAsync(extension);
|
|
|
if (promise) {
|