diff options
Diffstat (limited to 'js/lib/rdge/materials/relief-tunnel-material.js')
-rw-r--r-- | js/lib/rdge/materials/relief-tunnel-material.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/lib/rdge/materials/relief-tunnel-material.js b/js/lib/rdge/materials/relief-tunnel-material.js index 06b0cf46..cb433562 100644 --- a/js/lib/rdge/materials/relief-tunnel-material.js +++ b/js/lib/rdge/materials/relief-tunnel-material.js | |||
@@ -6,8 +6,10 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
6 | 6 | ||
7 | 7 | ||
8 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; | 8 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; |
9 | var Texture = require("js/lib/rdge/texture").Texture; | ||
9 | 10 | ||
10 | var ReliefTunnelMaterial = function ReliefTunnelMaterial() { | 11 | var ReliefTunnelMaterial = function ReliefTunnelMaterial() |
12 | { | ||
11 | /////////////////////////////////////////////////////////////////////// | 13 | /////////////////////////////////////////////////////////////////////// |
12 | // Instance variables | 14 | // Instance variables |
13 | /////////////////////////////////////////////////////////////////////// | 15 | /////////////////////////////////////////////////////////////////////// |
@@ -62,6 +64,9 @@ var ReliefTunnelMaterial = function ReliefTunnelMaterial() { | |||
62 | this._shader['default'].u_time.set([this._time]); | 64 | this._shader['default'].u_time.set([this._time]); |
63 | } | 65 | } |
64 | 66 | ||
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()]); |