aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/Materials/TaperMaterial.js
diff options
context:
space:
mode:
authorhwc4872012-03-02 09:36:31 -0800
committerhwc4872012-03-02 09:36:31 -0800
commitd044b6d9755d8ca686501fc3dd5644180e2ffbf0 (patch)
tree0ff6ca04987639417c0188ca8af2580b62d65f9f /js/helper-classes/RDGE/Materials/TaperMaterial.js
parentcf32843b1d64c631e6e7c808cc4f13ac316e1baf (diff)
downloadninja-d044b6d9755d8ca686501fc3dd5644180e2ffbf0.tar.gz
WebGL File IO
Diffstat (limited to 'js/helper-classes/RDGE/Materials/TaperMaterial.js')
-rw-r--r--js/helper-classes/RDGE/Materials/TaperMaterial.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/helper-classes/RDGE/Materials/TaperMaterial.js b/js/helper-classes/RDGE/Materials/TaperMaterial.js
index e8cc7a49..eea3f699 100644
--- a/js/helper-classes/RDGE/Materials/TaperMaterial.js
+++ b/js/helper-classes/RDGE/Materials/TaperMaterial.js
@@ -42,7 +42,7 @@ function TaperMaterial()
42 // duplcate method requirde 42 // duplcate method requirde
43 this.dup = function() { return new TaperMaterial(); } 43 this.dup = function() { return new TaperMaterial(); }
44 44
45 this.init = function() 45 this.init = function( world )
46 { 46 {
47 // set up the shader 47 // set up the shader
48 this._shader = new jshader(); 48 this._shader = new jshader();
@@ -53,7 +53,7 @@ function TaperMaterial()
53 this._shader.colorMe.color.set( this.getColor() ); 53 this._shader.colorMe.color.set( this.getColor() );
54 54
55 // set up the material node 55 // set up the material node
56 this._materialNode = createMaterialNode("taperMaterial"); 56 this._materialNode = createMaterialNode("taperMaterial_" + world.generateUniqueNodeID());
57 this._materialNode.setShader(this._shader); 57 this._materialNode.setShader(this._shader);
58 58
59 // initialize the taper properties 59 // initialize the taper properties