aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/tunnel-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/tunnel-material.js')
-rw-r--r--js/lib/rdge/materials/tunnel-material.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/tunnel-material.js b/js/lib/rdge/materials/tunnel-material.js
index 83bf9021..25bfe0c4 100644
--- a/js/lib/rdge/materials/tunnel-material.js
+++ b/js/lib/rdge/materials/tunnel-material.js
@@ -6,6 +6,7 @@
6 6
7 7
8var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; 8var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial;
9var Texture = require("js/lib/rdge/texture").Texture;
9 10
10var TunnelMaterial = function TunnelMaterial() { 11var TunnelMaterial = function TunnelMaterial() {
11 /////////////////////////////////////////////////////////////////////// 12 ///////////////////////////////////////////////////////////////////////
@@ -63,6 +64,10 @@ var TunnelMaterial = function TunnelMaterial() {
63 this._shader['default'].u_time.set([this._time]); 64 this._shader['default'].u_time.set([this._time]);
64 } 65 }
65 66
67 // set up the texture
68 var texMapName = this._propValues[this._propNames[0]];
69 this._glTex = new Texture( world, texMapName );
70
66 // set the shader values in the shader 71 // set the shader values in the shader
67 this.updateTexture(); 72 this.updateTexture();
68 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); 73 this.setResolution([world.getViewportWidth(), world.getViewportHeight()]);