diff options
author | Pushkar Joshi | 2012-03-13 11:36:11 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-03-13 11:36:11 -0700 |
commit | 6023f7c8258e660388ee33730601f1161f9299e9 (patch) | |
tree | 632484428b398f71b8481aa8e30180895ff2483c /js/helper-classes/backup-delete/Materials/PulseMaterial.js | |
parent | 76f2021618c0a6a99a1b855233e353e84ca99467 (diff) | |
parent | 4ad1650f629e7e345eade52ed6dadc233b27cc45 (diff) | |
download | ninja-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.js | 5 |
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"; |