aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/julia-material.js
diff options
context:
space:
mode:
authorhwc4872012-06-28 11:44:15 -0700
committerhwc4872012-06-28 11:44:15 -0700
commit22cbc9644b79df60b3f6336f9563debd47fb3ea1 (patch)
treef32687a920a039e0f048fab74627e0dc4ad6a8f1 /js/lib/rdge/materials/julia-material.js
parent2ebf3e3ea24d0d580575dfa13d31588dac1de445 (diff)
downloadninja-22cbc9644b79df60b3f6336f9563debd47fb3ea1.tar.gz
Added capability to split a mesh into multiiple parts to avoid buffer overflow situations.
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 d89fa594..e4b5c4a4 100644
--- a/js/lib/rdge/materials/julia-material.js
+++ b/js/lib/rdge/materials/julia-material.js
@@ -62,6 +62,15 @@ var JuliaMaterial = function JuliaMaterial() {
62 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); 62 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] );
63 this.update( 0 ); 63 this.update( 0 );
64 }; 64 };
65
66 this.resetToDefault = function()
67 {
68 this._propValues[this._propNames[u_speed_index]] = 1.0;
69
70 var nProps = this._propNames.length;
71 for (var i=0; i<nProps; i++)
72 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
73 };
65} 74}
66 75
67/////////////////////////////////////////////////////////////////////////////////////// 76///////////////////////////////////////////////////////////////////////////////////////