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 445f6023..e9e57863 100644
--- a/js/lib/rdge/materials/star-material.js
+++ b/js/lib/rdge/materials/star-material.js
@@ -95,6 +95,16 @@ var StarMaterial = function StarMaterial() {
95 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 95 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);
96 this.update(0); 96 this.update(0);
97 }; 97 };
98
99 this.resetToDefault = function()
100 {
101 this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0);
102 this._propValues[this._propNames[u_speed_index]] = 1.0;
103
104 var nProps = this._propNames.length;
105 for (var i=0; i<nProps; i++)
106 this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] );
107 };
98}; 108};
99 109
100/////////////////////////////////////////////////////////////////////////////////////// 110///////////////////////////////////////////////////////////////////////////////////////