diff options
Diffstat (limited to 'js/lib/rdge/materials/radial-blur-material.js')
-rw-r--r-- | js/lib/rdge/materials/radial-blur-material.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js index 68a92b0f..3ffbb436 100644 --- a/js/lib/rdge/materials/radial-blur-material.js +++ b/js/lib/rdge/materials/radial-blur-material.js | |||
@@ -69,6 +69,16 @@ var RadialBlurMaterial = function RadialBlurMaterial() { | |||
69 | this.update(0); | 69 | this.update(0); |
70 | }; | 70 | }; |
71 | 71 | ||
72 | this.resetToDefault = function() | ||
73 | { | ||
74 | this._propValues[this._propNames[0]] = this._defaultTexMap.slice(0); | ||
75 | this._propValues[this._propNames[1]] = 1.0; | ||
76 | |||
77 | var nProps = this._propNames.length; | ||
78 | for (var i=0; i<nProps; i++) | ||
79 | this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] ); | ||
80 | }; | ||
81 | |||
72 | 82 | ||
73 | this.update = function () { | 83 | this.update = function () { |
74 | var material = this._materialNode; | 84 | var material = this._materialNode; |