aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/twist-vert-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/twist-vert-material.js')
-rw-r--r--js/lib/rdge/materials/twist-vert-material.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/twist-vert-material.js b/js/lib/rdge/materials/twist-vert-material.js
index 6b71593f..e0324e69 100644
--- a/js/lib/rdge/materials/twist-vert-material.js
+++ b/js/lib/rdge/materials/twist-vert-material.js
@@ -105,6 +105,20 @@ var TwistVertMaterial = function TwistVertMaterial()
105 this.setShaderValues(); 105 this.setShaderValues();
106 }; 106 };
107 107
108 this.resetToDefault = function()
109 {
110 this._propValues[this._propNames[0]] = 0.0;
111 this._propValues[this._propNames[1]] = 1.0;
112 this._propValues[this._propNames[2]] = 2.0 * Math.PI;
113 this._propValues[this._propNames[3]] = this._speed;
114 this._propValues[this._propNames[4]] = this._tex0.slice();
115 this._propValues[this._propNames[5]] = this._tex1.slice();
116
117 var nProps = this._propNames.length;
118 for (var i=0; i<nProps; i++)
119 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
120 };
121
108 this.update = function (time) 122 this.update = function (time)
109 { 123 {
110 if (this._shader && this._shader.twistMe) 124 if (this._shader && this._shader.twistMe)