aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/square-tunnel-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/square-tunnel-material.js')
-rw-r--r--js/lib/rdge/materials/square-tunnel-material.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/square-tunnel-material.js b/js/lib/rdge/materials/square-tunnel-material.js
index 1f049a2c..c10d4b12 100644
--- a/js/lib/rdge/materials/square-tunnel-material.js
+++ b/js/lib/rdge/materials/square-tunnel-material.js
@@ -65,6 +65,16 @@ var SquareTunnelMaterial = function SquareTunnelMaterial() {
65 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 65 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);
66 this.update(0); 66 this.update(0);
67 }; 67 };
68
69 this.resetToDefault = function()
70 {
71 this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0);
72 this._propValues[this._propNames[u_speed_index]] = 1.0;
73
74 var nProps = this._propNames.length;
75 for (var i=0; i<nProps; i++)
76 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
77 };
68}; 78};
69 79
70/////////////////////////////////////////////////////////////////////////////////////// 80///////////////////////////////////////////////////////////////////////////////////////