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