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 b16d9022..533aaee7 100644 --- a/js/lib/rdge/materials/keleidoscope-material.js +++ b/js/lib/rdge/materials/keleidoscope-material.js | |||
@@ -72,6 +72,16 @@ var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | |||
72 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); | 72 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); |
73 | this.update( 0 ); | 73 | this.update( 0 ); |
74 | }; | 74 | }; |
75 | |||
76 | this.resetToDefault = function() | ||
77 | { | ||
78 | this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0); | ||
79 | this._propValues[this._propNames[u_speed_index]] = 1.0; | ||
80 | |||
81 | var nProps = this._propNames.length; | ||
82 | for (var i=0; i<nProps; i++) | ||
83 | this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] ); | ||
84 | }; | ||
75 | }; | 85 | }; |
76 | 86 | ||
77 | /////////////////////////////////////////////////////////////////////////////////////// | 87 | /////////////////////////////////////////////////////////////////////////////////////// |