diff options
Diffstat (limited to 'js/lib/rdge/materials/radial-blur-material.js')
-rw-r--r-- | js/lib/rdge/materials/radial-blur-material.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js index 41e68182..d0d05e8d 100644 --- a/js/lib/rdge/materials/radial-blur-material.js +++ b/js/lib/rdge/materials/radial-blur-material.js | |||
@@ -94,7 +94,7 @@ var RadialBlurMaterial = function RadialBlurMaterial() { | |||
94 | this._shader.init(); | 94 | this._shader.init(); |
95 | 95 | ||
96 | // set up the material node | 96 | // set up the material node |
97 | this._materialNode = createMaterialNode("radialBlurMaterial"); | 97 | this._materialNode = createMaterialNode("radialBlurMaterial" + "_" + world.generateUniqueNodeID()); |
98 | this._materialNode.setShader(this._shader); | 98 | this._materialNode.setShader(this._shader); |
99 | 99 | ||
100 | this._time = 0; | 100 | this._time = 0; |
@@ -161,6 +161,9 @@ var RadialBlurMaterial = function RadialBlurMaterial() { | |||
161 | // every material needs the base type and instance name | 161 | // every material needs the base type and instance name |
162 | var exportStr = "material: " + this.getShaderName() + "\n"; | 162 | var exportStr = "material: " + this.getShaderName() + "\n"; |
163 | exportStr += "name: " + this.getName() + "\n"; | 163 | exportStr += "name: " + this.getName() + "\n"; |
164 | |||
165 | var texMapName = this._propValues[this._propNames[0]]; | ||
166 | exportStr += "texture: " + texMapName + "\n"; | ||
164 | 167 | ||
165 | // every material needs to terminate like this | 168 | // every material needs to terminate like this |
166 | exportStr += "endMaterial\n"; | 169 | exportStr += "endMaterial\n"; |