From 76de5c246ac0f580e7746cc8db2bd19d046d1d34 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 16 Jul 2020 15:51:12 +0100 Subject: [PATCH] Update ForwardDiffuseLightPipeline.js --- src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js b/src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js index 9117923f9..f631d9901 100644 --- a/src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js +++ b/src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js @@ -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())