aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/plasma-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/plasma-material.js')
-rw-r--r--js/lib/rdge/materials/plasma-material.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/plasma-material.js b/js/lib/rdge/materials/plasma-material.js
index 10c29c99..fe64db93 100644
--- a/js/lib/rdge/materials/plasma-material.js
+++ b/js/lib/rdge/materials/plasma-material.js
@@ -80,6 +80,18 @@ var PlasmaMaterial = function PlasmaMaterial() {
80 this._shader['default'].u_time.set( [this._time] ); 80 this._shader['default'].u_time.set( [this._time] );
81 this._time += this._dTime; 81 this._time += this._dTime;
82 }; 82 };
83
84 this.resetToDefault = function()
85 {
86 this._propValues[ this._propNames[0] ] = this._wave;
87 this._propValues[ this._propNames[1] ] = this._wave1;
88 this._propValues[ this._propNames[2] ] = this._wave2;
89 this._propValues[ this._propNames[3] ] = this._speed;
90
91 var nProps = this._propNames.length;
92 for (var i=0; i<nProps; i++)
93 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
94 };
83}; 95};
84 96
85/////////////////////////////////////////////////////////////////////////////////////// 97///////////////////////////////////////////////////////////////////////////////////////