|
@@ -163,10 +163,23 @@ module BABYLON {
|
|
|
*/
|
|
|
public preventAutoStart: boolean = false;
|
|
|
|
|
|
+ private _noiseTexture: Nullable<ProceduralTexture>;
|
|
|
+
|
|
|
/**
|
|
|
* Gets or sets a texture used to add random noise to particle positions
|
|
|
*/
|
|
|
- public noiseTexture: Nullable<ProceduralTexture>;
|
|
|
+ public get noiseTexture(): Nullable<ProceduralTexture> {
|
|
|
+ return this._noiseTexture;
|
|
|
+ }
|
|
|
+
|
|
|
+ public set noiseTexture(value : Nullable<ProceduralTexture>) {
|
|
|
+ if (this._noiseTexture === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ this._noiseTexture = value;
|
|
|
+ this._reset();
|
|
|
+ }
|
|
|
|
|
|
/** Gets or sets the strength to apply to the noise value (default is (10, 10, 10)) */
|
|
|
public noiseStrength = new Vector3(10, 10, 10);
|