|
@@ -55266,6 +55266,14 @@ var BABYLON;
|
|
|
*/
|
|
|
this.maxScaleY = 1;
|
|
|
/**
|
|
|
+ * Gets or sets the minimal initial rotation in radians.
|
|
|
+ */
|
|
|
+ this.minInitialRotation = 0;
|
|
|
+ /**
|
|
|
+ * Gets or sets the maximal initial rotation in radians.
|
|
|
+ */
|
|
|
+ this.maxInitialRotation = 0;
|
|
|
+ /**
|
|
|
* Minimum angular speed of emitting particles (Z-axis rotation for each particle).
|
|
|
*/
|
|
|
this.minAngularSpeed = 0;
|
|
@@ -55877,6 +55885,7 @@ var BABYLON;
|
|
|
particle.size = BABYLON.Scalar.RandomRange(this.minSize, this.maxSize);
|
|
|
particle.scale.copyFromFloats(BABYLON.Scalar.RandomRange(this.minScaleX, this.maxScaleX), BABYLON.Scalar.RandomRange(this.minScaleY, this.maxScaleY));
|
|
|
particle.angularSpeed = BABYLON.Scalar.RandomRange(this.minAngularSpeed, this.maxAngularSpeed);
|
|
|
+ particle.angle = BABYLON.Scalar.RandomRange(this.minInitialRotation, this.maxInitialRotation);
|
|
|
if (!this._colorGradients || this._colorGradients.length === 0) {
|
|
|
var step = BABYLON.Scalar.RandomRange(0, 1.0);
|
|
|
BABYLON.Color4.LerpToRef(this.color1, this.color2, step, particle.color);
|
|
@@ -56246,6 +56255,10 @@ var BABYLON;
|
|
|
serializationObject.blendMode = this.blendMode;
|
|
|
serializationObject.customShader = this.customShader;
|
|
|
serializationObject.preventAutoStart = this.preventAutoStart;
|
|
|
+ serializationObject.preWarmCycles = this.preWarmCycles;
|
|
|
+ serializationObject.preWarmStepOffset = this.preWarmStepOffset;
|
|
|
+ serializationObject.minInitialRotation = this.minInitialRotation;
|
|
|
+ serializationObject.maxInitialRotation = this.maxInitialRotation;
|
|
|
serializationObject.startSpriteCellID = this.startSpriteCellID;
|
|
|
serializationObject.endSpriteCellID = this.endSpriteCellID;
|
|
|
serializationObject.spriteCellLoop = this.spriteCellLoop;
|
|
@@ -56317,6 +56330,14 @@ var BABYLON;
|
|
|
particleSystem.minScaleY = parsedParticleSystem.minScaleY;
|
|
|
particleSystem.maxScaleY = parsedParticleSystem.maxScaleY;
|
|
|
}
|
|
|
+ if (parsedParticleSystem.preWarmCycles !== undefined) {
|
|
|
+ particleSystem.preWarmCycles = parsedParticleSystem.preWarmCycles;
|
|
|
+ particleSystem.preWarmStepOffset = parsedParticleSystem.preWarmStepOffset;
|
|
|
+ }
|
|
|
+ if (parsedParticleSystem.minInitialRotation !== undefined) {
|
|
|
+ particleSystem.minInitialRotation = parsedParticleSystem.minInitialRotation;
|
|
|
+ particleSystem.maxInitialRotation = parsedParticleSystem.maxInitialRotation;
|
|
|
+ }
|
|
|
particleSystem.minLifeTime = parsedParticleSystem.minLifeTime;
|
|
|
particleSystem.maxLifeTime = parsedParticleSystem.maxLifeTime;
|
|
|
particleSystem.minEmitPower = parsedParticleSystem.minEmitPower;
|
|
@@ -102084,7 +102105,6 @@ var BABYLON;
|
|
|
options.size = Math.abs(options.size) || (scene.activeCamera ? scene.activeCamera.maxZ * 0.48 : 1000);
|
|
|
// create
|
|
|
var material = _this._material = new BABYLON.BackgroundMaterial(name + "_material", scene);
|
|
|
- var texture = _this._photoTexture = new BABYLON.Texture(urlOfPhoto, scene);
|
|
|
_this._mesh = BABYLON.MeshBuilder.CreateIcoSphere(name + "_mesh", {
|
|
|
flat: false,
|
|
|
radius: options.size,
|
|
@@ -102092,11 +102112,9 @@ var BABYLON;
|
|
|
sideOrientation: BABYLON.Mesh.BACKSIDE // needs to be inside out
|
|
|
}, scene);
|
|
|
// configure material
|
|
|
- texture.coordinatesMode = BABYLON.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE; // matches orientation
|
|
|
- texture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE; // always clamp the up/down
|
|
|
- material.reflectionTexture = _this._photoTexture;
|
|
|
material.useEquirectangularFOV = true;
|
|
|
material.fovMultiplier = 1.0;
|
|
|
+ _this.photoTexture = new BABYLON.Texture(urlOfPhoto, scene);
|
|
|
// configure mesh
|
|
|
_this._mesh.material = material;
|
|
|
_this._mesh.parent = _this;
|
|
@@ -102104,11 +102122,20 @@ var BABYLON;
|
|
|
}
|
|
|
Object.defineProperty(PhotoDome.prototype, "photoTexture", {
|
|
|
/**
|
|
|
- * Gets the texture being displayed on the sphere
|
|
|
+ * Gets or sets the texture being displayed on the sphere
|
|
|
*/
|
|
|
get: function () {
|
|
|
return this._photoTexture;
|
|
|
},
|
|
|
+ set: function (value) {
|
|
|
+ if (this._photoTexture === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._photoTexture = value;
|
|
|
+ this._photoTexture.coordinatesMode = BABYLON.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE; // matches orientation
|
|
|
+ this._photoTexture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE; // always clamp the up/down
|
|
|
+ this._material.reflectionTexture = this._photoTexture;
|
|
|
+ },
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|