From e92a6da7b84c58803489d70efedf74837ddfe4cd Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 9 Mar 2012 13:34:09 -0800 Subject: Removed asset path replacement at authortime. --- js/lib/rdge/materials/bump-metal-material.js | 6 +++--- js/lib/rdge/materials/pulse-material.js | 2 +- js/lib/rdge/materials/radial-blur-material.js | 2 +- js/lib/rdge/materials/uber-material.js | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'js/lib/rdge') diff --git a/js/lib/rdge/materials/bump-metal-material.js b/js/lib/rdge/materials/bump-metal-material.js index 70873885..fa6f5300 100755 --- a/js/lib/rdge/materials/bump-metal-material.js +++ b/js/lib/rdge/materials/bump-metal-material.js @@ -163,9 +163,9 @@ var BumpMetalMaterial = function BumpMetalMaterial() { throw new Error( "no world in material.export, " + this.getName() ); exportStr += "lightDiff: " + this.getLightDiff() + "\n"; - exportStr += "diffuseTexture: " + world.cleansePath(this.getDiffuseTexture()) + "\n"; - exportStr += "specularTexture: " + world.cleansePath(this.getSpecularTexture()) + "\n"; - exportStr += "normalMap: " + world.cleansePath(this.getNormalTexture()) + "\n"; + exportStr += "diffuseTexture: " + this.getDiffuseTexture() + "\n"; + exportStr += "specularTexture: " + this.getSpecularTexture() + "\n"; + exportStr += "normalMap: " + this.getNormalTexture() + "\n"; // every material needs to terminate like this exportStr += "endMaterial\n"; diff --git a/js/lib/rdge/materials/pulse-material.js b/js/lib/rdge/materials/pulse-material.js index 8ad78bd4..81db36c6 100644 --- a/js/lib/rdge/materials/pulse-material.js +++ b/js/lib/rdge/materials/pulse-material.js @@ -183,7 +183,7 @@ var PulseMaterial = function PulseMaterial() { if (!world) throw new Error( "no world in material.export, " + this.getName() ); - var texMapName = world.cleansePath( this._propValues[this._propNames[0]] ); + var texMapName = this._propValues[this._propNames[0]]; exportStr += "texture: " +texMapName + "\n"; // every material needs to terminate like this diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js index f23f0712..46cdda74 100644 --- a/js/lib/rdge/materials/radial-blur-material.js +++ b/js/lib/rdge/materials/radial-blur-material.js @@ -166,7 +166,7 @@ var RadialBlurMaterial = function RadialBlurMaterial() { if (!world) throw new Error( "no world in material.export, " + this.getName() ); - var texMapName = world.cleansePath( this._propValues[this._propNames[0]] ); + var texMapName = this._propValues[this._propNames[0]]; exportStr += "texture: " + texMapName + "\n"; // every material needs to terminate like this diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js index d120ffa1..655d8e2a 100755 --- a/js/lib/rdge/materials/uber-material.js +++ b/js/lib/rdge/materials/uber-material.js @@ -457,16 +457,16 @@ var UberMaterial = function UberMaterial() { throw new Error( "no world in material.export, " + this.getName() ); if(typeof caps.diffuseMap != 'undefined') - exportStr += "diffuseMap: " + world.cleansePath(caps.diffuseMap.texture) + "\n"; + exportStr += "diffuseMap: " + caps.diffuseMap.texture + "\n"; if(typeof caps.normalMap != 'undefined') - exportStr += "normalMap: " + world.cleansePath(caps.normalMap.texture) + "\n"; + exportStr += "normalMap: " + caps.normalMap.texture + "\n"; if(typeof caps.specularMap != 'undefined') - exportStr += "specularMap: " + world.cleansePath(caps.specularMap.texture) + "\n"; + exportStr += "specularMap: " + caps.specularMap.texture + "\n"; if(typeof caps.environmentMap != 'undefined') - exportStr += "environmentMap: " + world.cleansePath(caps.environmentMap.texture) + "\n"; + exportStr += "environmentMap: " + caps.environmentMap.texture + "\n"; // every material needs to terminate like this exportStr += "endMaterial\n"; -- cgit v1.2.3