aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/radial-blur-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/radial-blur-material.js')
-rw-r--r--js/lib/rdge/materials/radial-blur-material.js10
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 4a32cacd..d71a0459 100644
--- a/js/lib/rdge/materials/radial-blur-material.js
+++ b/js/lib/rdge/materials/radial-blur-material.js
@@ -93,6 +93,16 @@ var RadialBlurMaterial = function RadialBlurMaterial() {
93 this.update(0); 93 this.update(0);
94 }; 94 };
95 95
96 this.resetToDefault = function()
97 {
98 this._propValues[this._propNames[0]] = this._defaultTexMap.slice(0);
99 this._propValues[this._propNames[1]] = 1.0;
100
101 var nProps = this._propNames.length;
102 for (var i=0; i<nProps; i++)
103 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
104 };
105
96 106
97 this.update = function () { 107 this.update = function () {
98 var material = this._materialNode; 108 var material = this._materialNode;