aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/twist-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/twist-material.js')
-rw-r--r--js/lib/rdge/materials/twist-material.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/twist-material.js b/js/lib/rdge/materials/twist-material.js
index 20e49713..d5f8a1c3 100644
--- a/js/lib/rdge/materials/twist-material.js
+++ b/js/lib/rdge/materials/twist-material.js
@@ -91,6 +91,16 @@ var TwistMaterial = function TwistMaterial() {
91 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 91 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);
92 this.update(0); 92 this.update(0);
93 }; 93 };
94
95 this.resetToDefault = function()
96 {
97 this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0);
98 this._propValues[this._propNames[u_speed_index]] = 1.0;
99
100 var nProps = this._propNames.length;
101 for (var i=0; i<nProps; i++)
102 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
103 };
94}; 104};
95 105
96/////////////////////////////////////////////////////////////////////////////////////// 106///////////////////////////////////////////////////////////////////////////////////////