aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib')
-rwxr-xr-xjs/lib/rdge/materials/uber-material.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js
index 8ec5b05c..91f43754 100755
--- a/js/lib/rdge/materials/uber-material.js
+++ b/js/lib/rdge/materials/uber-material.js
@@ -477,7 +477,7 @@ var UberMaterial = function UberMaterial() {
477 if(environmentMap) 477 if(environmentMap)
478 { 478 {
479 this.setProperty( "environmentMap", environmentMap ); 479 this.setProperty( "environmentMap", environmentMap );
480 this.setProperty( "environmentAmount", Number( pu.nextValue( "envReflection" ) ) ); 480 this.setProperty( "environmentAmount", Number( pu.nextValue( "environmentAmount" ) ) );
481 } 481 }
482 482
483 this.rebuildShader(); 483 this.rebuildShader();
@@ -495,10 +495,10 @@ var UberMaterial = function UberMaterial() {
495 if (typeof caps.material != 'undefined') 495 if (typeof caps.material != 'undefined')
496 { 496 {
497 exportStr += "materialProps: true\n"; 497 exportStr += "materialProps: true\n";
498 exportStr += "ambientColor: " + caps.material.ambientColor + "\n"; 498 exportStr += "ambientColor: " + this._ambientColor + "\n";
499 exportStr += "diffuseColor: " + caps.material.diffuseColor + "\n"; 499 exportStr += "diffuseColor: " + this._diffuseColor + "\n";
500 exportStr += "specularColor: " + caps.material.specularColor + "\n"; 500 exportStr += "specularColor: " + this._specularColor + "\n";
501 exportStr += "specularPower: " + caps.material.specularPower + "\n"; 501 exportStr += "specularPower: " + this._specularPower + "\n";
502 } 502 }
503 503
504 if (typeof caps.lighting != 'undefined') 504 if (typeof caps.lighting != 'undefined')
@@ -559,7 +559,7 @@ var UberMaterial = function UberMaterial() {
559 if(typeof caps.environmentMap != 'undefined') 559 if(typeof caps.environmentMap != 'undefined')
560 { 560 {
561 exportStr += "environmentMap: " + caps.environmentMap.texture + "\n"; 561 exportStr += "environmentMap: " + caps.environmentMap.texture + "\n";
562 exportStr += "envReflection: " + caps.environmentMap.envReflection + "\n"; 562 exportStr += "environmentAmount: " + caps.environmentMap.envReflection + "\n";
563 } 563 }
564 564
565 // every material needs to terminate like this 565 // every material needs to terminate like this