aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/mandel-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/mandel-material.js')
-rw-r--r--js/lib/rdge/materials/mandel-material.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/mandel-material.js b/js/lib/rdge/materials/mandel-material.js
index 48377fe4..1661c63a 100644
--- a/js/lib/rdge/materials/mandel-material.js
+++ b/js/lib/rdge/materials/mandel-material.js
@@ -89,6 +89,15 @@ var MandelMaterial = function MandelMaterial() {
89 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); 89 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] );
90 this.update( 0 ); 90 this.update( 0 );
91 }; 91 };
92
93 this.resetToDefault = function()
94 {
95 this._propValues[this._propNames[u_speed_index]] = 1.0;
96
97 var nProps = this._propNames.length;
98 for (var i=0; i<nProps; i++)
99 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
100 };
92}; 101};
93 102
94/////////////////////////////////////////////////////////////////////////////////////// 103///////////////////////////////////////////////////////////////////////////////////////