diff options
author | Nivesh Rajbhandari | 2012-03-13 13:05:33 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-13 13:05:33 -0700 |
commit | 92fc2e3c4bca2edb04102431b4959aafe022f329 (patch) | |
tree | d48c090f71ed2cd6bd6ce38ff68c36ab69299985 /js/lib/rdge/materials/twist-vert-material.js | |
parent | efb92cf52680d31f05fed3757e74862592cc2d4c (diff) | |
parent | f56b8cf4d3316d250c0f0045fb78f0dbd5c56e94 (diff) | |
download | ninja-92fc2e3c4bca2edb04102431b4959aafe022f329.tar.gz |
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/lib/rdge/materials/twist-vert-material.js')
-rw-r--r-- | js/lib/rdge/materials/twist-vert-material.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/lib/rdge/materials/twist-vert-material.js b/js/lib/rdge/materials/twist-vert-material.js index c2573071..05172a1b 100644 --- a/js/lib/rdge/materials/twist-vert-material.js +++ b/js/lib/rdge/materials/twist-vert-material.js | |||
@@ -46,8 +46,10 @@ function TwistVertMaterial() | |||
46 | // duplcate method requirde | 46 | // duplcate method requirde |
47 | this.dup = function() { return new TwistVertMaterial(); } | 47 | this.dup = function() { return new TwistVertMaterial(); } |
48 | 48 | ||
49 | this.init = function() | 49 | this.init = function( world ) |
50 | { | 50 | { |
51 | this.setWorld( world ); | ||
52 | |||
51 | // set up the shader | 53 | // set up the shader |
52 | this._shader = new jshader(); | 54 | this._shader = new jshader(); |
53 | this._shader.def = twistVertShaderDef; | 55 | this._shader.def = twistVertShaderDef; |
@@ -57,7 +59,7 @@ function TwistVertMaterial() | |||
57 | this._shader.twistMe.color.set( this.getColor() ); | 59 | this._shader.twistMe.color.set( this.getColor() ); |
58 | 60 | ||
59 | // set up the material node | 61 | // set up the material node |
60 | this._materialNode = createMaterialNode("twistVertMaterial"); | 62 | this._materialNode = createMaterialNode("twistVertMaterial" + "_" + world.generateUniqueNodeID()); |
61 | this._materialNode.setShader(this._shader); | 63 | this._materialNode.setShader(this._shader); |
62 | 64 | ||
63 | // initialize the twist vert properties | 65 | // initialize the twist vert properties |