diff options
Diffstat (limited to 'js/lib/rdge/materials/keleidoscope-material.js')
-rw-r--r-- | js/lib/rdge/materials/keleidoscope-material.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/keleidoscope-material.js b/js/lib/rdge/materials/keleidoscope-material.js index 648bf401..8ad02963 100644 --- a/js/lib/rdge/materials/keleidoscope-material.js +++ b/js/lib/rdge/materials/keleidoscope-material.js | |||
@@ -96,6 +96,16 @@ var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | |||
96 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); | 96 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); |
97 | this.update( 0 ); | 97 | this.update( 0 ); |
98 | }; | 98 | }; |
99 | |||
100 | this.resetToDefault = function() | ||
101 | { | ||
102 | this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0); | ||
103 | this._propValues[this._propNames[u_speed_index]] = 1.0; | ||
104 | |||
105 | var nProps = this._propNames.length; | ||
106 | for (var i=0; i<nProps; i++) | ||
107 | this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] ); | ||
108 | }; | ||
99 | }; | 109 | }; |
100 | 110 | ||
101 | /////////////////////////////////////////////////////////////////////////////////////// | 111 | /////////////////////////////////////////////////////////////////////////////////////// |