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 b757afb8..f42a5f02 100644
--- a/js/lib/rdge/materials/twist-material.js
+++ b/js/lib/rdge/materials/twist-material.js
@@ -67,6 +67,16 @@ var TwistMaterial = function TwistMaterial() {
67 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 67 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);
68 this.update(0); 68 this.update(0);
69 }; 69 };
70
71 this.resetToDefault = function()
72 {
73 this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0);
74 this._propValues[this._propNames[u_speed_index]] = 1.0;
75
76 var nProps = this._propNames.length;
77 for (var i=0; i<nProps; i++)
78 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
79 };
70}; 80};
71 81
72/////////////////////////////////////////////////////////////////////////////////////// 82///////////////////////////////////////////////////////////////////////////////////////