diff options
Diffstat (limited to 'js/lib/rdge/materials/keleidoscope-material.js')
-rw-r--r-- | js/lib/rdge/materials/keleidoscope-material.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/keleidoscope-material.js b/js/lib/rdge/materials/keleidoscope-material.js index 4506bb8c..db325eaa 100644 --- a/js/lib/rdge/materials/keleidoscope-material.js +++ b/js/lib/rdge/materials/keleidoscope-material.js | |||
@@ -5,6 +5,7 @@ | |||
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; | 7 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; |
8 | var Texture = require("js/lib/rdge/texture").Texture; | ||
8 | 9 | ||
9 | var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | 10 | var KeleidoscopeMaterial = function KeleidoscopeMaterial() { |
10 | /////////////////////////////////////////////////////////////////////// | 11 | /////////////////////////////////////////////////////////////////////// |
@@ -68,6 +69,10 @@ var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | |||
68 | this._shader['default'].u_time.set( [this._time] ); | 69 | this._shader['default'].u_time.set( [this._time] ); |
69 | } | 70 | } |
70 | 71 | ||
72 | // set up the texture | ||
73 | var texMapName = this._propValues[this._propNames[0]]; | ||
74 | this._glTex = new Texture( world, texMapName ); | ||
75 | |||
71 | // set the shader values in the shader | 76 | // set the shader values in the shader |
72 | this.updateTexture(); | 77 | this.updateTexture(); |
73 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); | 78 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); |