mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Update ForwardDiffuseLightPipeline.js
This commit is contained in:
parent
6aba9e71b1
commit
76de5c246a
1 changed files with 3 additions and 2 deletions
|
@ -328,9 +328,10 @@ var ForwardDiffuseLightPipeline = new Class({
|
|||
*/
|
||||
setTexture2D: function (texture, gameObject)
|
||||
{
|
||||
if (texture === undefined) { texture = this.renderer.blankTexture.glTexture; }
|
||||
|
||||
var renderer = this.renderer;
|
||||
|
||||
if (texture === undefined) { texture = renderer.tempTextures[0]; }
|
||||
|
||||
var normalTexture = this.getNormalMap(gameObject);
|
||||
|
||||
if (renderer.isNewNormalMap())
|
||||
|
|
Loading…
Reference in a new issue