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 0b4923aa..02af8ec0 100644
--- a/js/lib/rdge/materials/plasma-material.js
+++ b/js/lib/rdge/materials/plasma-material.js
@@ -104,6 +104,18 @@ var PlasmaMaterial = function PlasmaMaterial() {
104 this._shader['default'].u_time.set( [this._time] ); 104 this._shader['default'].u_time.set( [this._time] );
105 this._time += this._dTime; 105 this._time += this._dTime;
106 }; 106 };
107
108 this.resetToDefault = function()
109 {
110 this._propValues[ this._propNames[0] ] = this._wave;
111 this._propValues[ this._propNames[1] ] = this._wave1;
112 this._propValues[ this._propNames[2] ] = this._wave2;
113 this._propValues[ this._propNames[3] ] = this._speed;
114
115 var nProps = this._propNames.length;
116 for (var i=0; i<nProps; i++)
117 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
118 };
107}; 119};
108 120
109/////////////////////////////////////////////////////////////////////////////////////// 121///////////////////////////////////////////////////////////////////////////////////////