aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/star-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/star-material.js')
-rw-r--r--js/lib/rdge/materials/star-material.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/star-material.js b/js/lib/rdge/materials/star-material.js
index 760cf128..e5873810 100644
--- a/js/lib/rdge/materials/star-material.js
+++ b/js/lib/rdge/materials/star-material.js
@@ -71,6 +71,16 @@ var StarMaterial = function StarMaterial() {
71 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 71 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);
72 this.update(0); 72 this.update(0);
73 }; 73 };
74
75 this.resetToDefault = function()
76 {
77 this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0);
78 this._propValues[this._propNames[u_speed_index]] = 1.0;
79
80 var nProps = this._propNames.length;
81 for (var i=0; i<nProps; i++)
82 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
83 };
74}; 84};
75 85
76/////////////////////////////////////////////////////////////////////////////////////// 86///////////////////////////////////////////////////////////////////////////////////////