aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/backup-delete/Materials/PulseMaterial.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-13 11:15:34 -0700
committerValerio Virgillito2012-03-13 11:15:34 -0700
commitf6b958360d82854bdaf51848e7fd715d1f633179 (patch)
tree80f6c08bb730089bdd3f26310df8d2363f9ba863 /js/helper-classes/backup-delete/Materials/PulseMaterial.js
parentc24f58c10231c30d3a8a4c9fb9a4f395dd746180 (diff)
parent4d7b86f55c504ee4e8c2460cf6b60cb9a2cf18f0 (diff)
downloadninja-f6b958360d82854bdaf51848e7fd715d1f633179.tar.gz
Merge pull request #105 from joseeight/FileIO-Build-Candidate
File I/O adding webGL/canvas data functionality
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";