aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/z-invert-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/z-invert-material.js')
-rw-r--r--js/lib/rdge/materials/z-invert-material.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/z-invert-material.js b/js/lib/rdge/materials/z-invert-material.js
index ef93584d..37e4d925 100644
--- a/js/lib/rdge/materials/z-invert-material.js
+++ b/js/lib/rdge/materials/z-invert-material.js
@@ -93,6 +93,16 @@ var ZInvertMaterial = function ZInvertMaterial() {
93 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 93 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);
94 this.update(0); 94 this.update(0);
95 }; 95 };
96
97 this.resetToDefault = function()
98 {
99 this._propValues[ this._propNames[u_tex_index ] ] = this._defaultTexMap.slice(0);
100 this._propValues[ this._propNames[u_speed_index ] ] = 1.0;
101
102 var nProps = this._propNames.length;
103 for (var i=0; i<nProps; i++)
104 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
105 };
96}; 106};
97 107
98/////////////////////////////////////////////////////////////////////////////////////// 108///////////////////////////////////////////////////////////////////////////////////////