aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/backup-delete/Materials/PulseMaterial.js
diff options
context:
space:
mode:
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";