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