diff options
author | hwc487 | 2012-05-03 16:42:56 -0700 |
---|---|---|
committer | hwc487 | 2012-05-03 16:42:56 -0700 |
commit | d21aaca3d7093b6af968b7f9f764ab54e004f02b (patch) | |
tree | aae070c04d18bc30fda6b133ce3d7de7b621f8b2 /js/lib/rdge/materials/uber-material.js | |
parent | e791a7a821221d206c40427fd2695b42a5bacf5f (diff) | |
download | ninja-d21aaca3d7093b6af968b7f9f764ab54e004f02b.tar.gz |
Cleanup of indirect textures.
Diffstat (limited to 'js/lib/rdge/materials/uber-material.js')
-rwxr-xr-x | js/lib/rdge/materials/uber-material.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js index bc2ba340..9d0cc564 100755 --- a/js/lib/rdge/materials/uber-material.js +++ b/js/lib/rdge/materials/uber-material.js | |||
@@ -284,30 +284,6 @@ var UberMaterial = function UberMaterial() { | |||
284 | } | 284 | } |
285 | }; | 285 | }; |
286 | 286 | ||
287 | |||
288 | this.updateTextures = function() | ||
289 | { | ||
290 | var material = this._materialNode; | ||
291 | if (material) | ||
292 | { | ||
293 | var technique = material.shaderProgram.defaultTechnique; | ||
294 | var renderer = RDGE_globals.engine.getContext().renderer; | ||
295 | if (renderer && technique) | ||
296 | { | ||
297 | if (this._diffuseTexture) | ||
298 | { | ||
299 | if (!this._diffuseTexture.isAnimated()) | ||
300 | { | ||
301 | this._diffuseTexture.render(); | ||
302 | var tex = this._diffuseTexture.getTexture(); | ||
303 | technique.s_diffuseMap.set( tex ); | ||
304 | } | ||
305 | } | ||
306 | } | ||
307 | } | ||
308 | } | ||
309 | |||
310 | |||
311 | this.updateSpecularMap = function () { | 287 | this.updateSpecularMap = function () { |
312 | var value = this._propValues["specularMap"]; | 288 | var value = this._propValues["specularMap"]; |
313 | this._specularMapOb.texture = value; | 289 | this._specularMapOb.texture = value; |