aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge
diff options
context:
space:
mode:
authorhwc4872012-03-14 16:22:22 -0700
committerhwc4872012-03-14 16:22:22 -0700
commit57d4a82977a1f0e809511fe894886f88581d9615 (patch)
tree330173781837bf9f635e9d92a5db39d4dc243aa8 /js/lib/rdge
parent9b40878fcc82d3ec08361e30d2029de261f0f80e (diff)
downloadninja-57d4a82977a1f0e809511fe894886f88581d9615.tar.gz
Corrections for Uber shader IO
Diffstat (limited to 'js/lib/rdge')
-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