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.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/star-material.js b/js/lib/rdge/materials/star-material.js
index f3f4474d..c4ff08c8 100644
--- a/js/lib/rdge/materials/star-material.js
+++ b/js/lib/rdge/materials/star-material.js
@@ -5,6 +5,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
5</copyright> */ 5</copyright> */
6 6
7var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; 7var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial;
8var Texture = require("js/lib/rdge/texture").Texture;
8 9
9var StarMaterial = function StarMaterial() { 10var StarMaterial = function StarMaterial() {
10 /////////////////////////////////////////////////////////////////////// 11 ///////////////////////////////////////////////////////////////////////
@@ -62,6 +63,10 @@ var StarMaterial = function StarMaterial() {
62 this._shader['default'].u_time.set([this._time]); 63 this._shader['default'].u_time.set([this._time]);
63 } 64 }
64 65
66 // set up the texture
67 var texMapName = this._propValues[this._propNames[0]];
68 this._glTex = new Texture( world, texMapName );
69
65 // set the shader values in the shader 70 // set the shader values in the shader
66 this.updateTexture(); 71 this.updateTexture();
67 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 72 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);