aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/fly-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/fly-material.js')
-rw-r--r--js/lib/rdge/materials/fly-material.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/fly-material.js b/js/lib/rdge/materials/fly-material.js
index 37bef66a..712a38ac 100644
--- a/js/lib/rdge/materials/fly-material.js
+++ b/js/lib/rdge/materials/fly-material.js
@@ -5,6 +5,7 @@
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 FlyMaterial = function FlyMaterial() { 10var FlyMaterial = function FlyMaterial() {
10 /////////////////////////////////////////////////////////////////////// 11 ///////////////////////////////////////////////////////////////////////
@@ -61,6 +62,10 @@ var FlyMaterial = function FlyMaterial() {
61 this._shader['default'].u_time.set( [this._time] ); 62 this._shader['default'].u_time.set( [this._time] );
62 } 63 }
63 64
65 // set up the texture
66 var texMapName = this._propValues[this._propNames[0]];
67 this._glTex = new Texture( world, texMapName );
68
64 // set the shader values in the shader 69 // set the shader values in the shader
65 this.updateTexture(); 70 this.updateTexture();
66 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); 71 this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] );