diff options
author | hwc487 | 2012-05-22 08:38:38 -0700 |
---|---|---|
committer | hwc487 | 2012-05-22 08:38:38 -0700 |
commit | cc3b66f817c9d72ca247d5ff789a08ec5b57a2b5 (patch) | |
tree | 229a3d92b2fa86c32b6d47134b843880e909bead /js/lib/rdge/materials/uber-material.js | |
parent | dc92188fef67d7a2032173d7746fbc16a951a366 (diff) | |
download | ninja-cc3b66f817c9d72ca247d5ff789a08ec5b57a2b5.tar.gz |
Editable material properties
Diffstat (limited to 'js/lib/rdge/materials/uber-material.js')
-rwxr-xr-x | js/lib/rdge/materials/uber-material.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js index 9d0cc564..6de74495 100755 --- a/js/lib/rdge/materials/uber-material.js +++ b/js/lib/rdge/materials/uber-material.js | |||
@@ -180,6 +180,7 @@ var UberMaterial = function UberMaterial() { | |||
180 | this.updateAmbientColor = function () { | 180 | this.updateAmbientColor = function () { |
181 | this._ambientColor = this._propValues['ambientColor'].slice(0); | 181 | this._ambientColor = this._propValues['ambientColor'].slice(0); |
182 | var material = this._materialNode; | 182 | var material = this._materialNode; |
183 | console.log( "ambient color: " + this._ambientColor ); | ||
183 | if (material) { | 184 | if (material) { |
184 | var technique = material.shaderProgram.defaultTechnique; | 185 | var technique = material.shaderProgram.defaultTechnique; |
185 | technique.u_ambientColor.set(this._ambientColor); | 186 | technique.u_ambientColor.set(this._ambientColor); |