aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/backup-delete/Materials/PulseMaterial.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-13 11:36:11 -0700
committerPushkar Joshi2012-03-13 11:36:11 -0700
commit6023f7c8258e660388ee33730601f1161f9299e9 (patch)
tree632484428b398f71b8481aa8e30180895ff2483c /js/helper-classes/backup-delete/Materials/PulseMaterial.js
parent76f2021618c0a6a99a1b855233e353e84ca99467 (diff)
parent4ad1650f629e7e345eade52ed6dadc233b27cc45 (diff)
downloadninja-6023f7c8258e660388ee33730601f1161f9299e9.tar.gz
Merge branch 'pentool' into brushtool
Diffstat (limited to 'js/helper-classes/backup-delete/Materials/PulseMaterial.js')
-rw-r--r--js/helper-classes/backup-delete/Materials/PulseMaterial.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/helper-classes/backup-delete/Materials/PulseMaterial.js b/js/helper-classes/backup-delete/Materials/PulseMaterial.js
index d76b9966..e55798b7 100644
--- a/js/helper-classes/backup-delete/Materials/PulseMaterial.js
+++ b/js/helper-classes/backup-delete/Materials/PulseMaterial.js
@@ -105,7 +105,7 @@ function PulseMaterial()
105 this._shader.init(); 105 this._shader.init();
106 106
107 // set up the material node 107 // set up the material node
108 this._materialNode = createMaterialNode("pulseMaterial"); 108 this._materialNode = createMaterialNode("pulseMaterial_" + world.generateUniqueNodeID());
109 this._materialNode.setShader(this._shader); 109 this._materialNode.setShader(this._shader);
110 110
111 this._time = 0; 111 this._time = 0;
@@ -185,6 +185,9 @@ function PulseMaterial()
185 // every material needs the base type and instance name 185 // every material needs the base type and instance name
186 var exportStr = "material: " + this.getShaderName() + "\n"; 186 var exportStr = "material: " + this.getShaderName() + "\n";
187 exportStr += "name: " + this.getName() + "\n"; 187 exportStr += "name: " + this.getName() + "\n";
188
189 var texMapName = this._propValues[this._propNames[0]];
190 exportStr += "texture: " + texMapName + "\n";
188 191
189 // every material needs to terminate like this 192 // every material needs to terminate like this
190 exportStr += "endMaterial\n"; 193 exportStr += "endMaterial\n";