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 4f3def4a..e868895b 100644
--- a/js/lib/rdge/materials/mandel-material.js
+++ b/js/lib/rdge/materials/mandel-material.js
@@ -65,6 +65,15 @@ var MandelMaterial = function MandelMaterial() {
65 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); 65 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] );
66 this.update( 0 ); 66 this.update( 0 );
67 }; 67 };
68
69 this.resetToDefault = function()
70 {
71 this._propValues[this._propNames[u_speed_index]] = 1.0;
72
73 var nProps = this._propNames.length;
74 for (var i=0; i<nProps; i++)
75 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
76 };
68}; 77};
69 78
70/////////////////////////////////////////////////////////////////////////////////////// 79///////////////////////////////////////////////////////////////////////////////////////