diff options
Diffstat (limited to 'js/lib/rdge/materials/tunnel-material.js')
-rw-r--r-- | js/lib/rdge/materials/tunnel-material.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/rdge/materials/tunnel-material.js b/js/lib/rdge/materials/tunnel-material.js index fe0fbd51..13cafc4f 100644 --- a/js/lib/rdge/materials/tunnel-material.js +++ b/js/lib/rdge/materials/tunnel-material.js | |||
@@ -51,12 +51,12 @@ var TunnelMaterial = function TunnelMaterial() { | |||
51 | if (world) this.setWorld( world ); | 51 | if (world) this.setWorld( world ); |
52 | 52 | ||
53 | // set up the shader | 53 | // set up the shader |
54 | this._shader = new jshader(); | 54 | this._shader = new RDGE.jshader(); |
55 | this._shader.def = tunnelMaterialDef; | 55 | this._shader.def = tunnelMaterialDef; |
56 | this._shader.init(); | 56 | this._shader.init(); |
57 | 57 | ||
58 | // set up the material node | 58 | // set up the material node |
59 | this._materialNode = createMaterialNode("tunnelMaterial" + "_" + world.generateUniqueNodeID()); | 59 | this._materialNode = RDGE.createMaterialNode("tunnelMaterial" + "_" + world.generateUniqueNodeID()); |
60 | this._materialNode.setShader(this._shader); | 60 | this._materialNode.setShader(this._shader); |
61 | 61 | ||
62 | this._time = 0; | 62 | this._time = 0; |