Skip to content

Commit 8bb4933

Browse files
committed
Always set rotation
1 parent d11a16d commit 8bb4933

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/renderer/webgl/pipelines/ForwardDiffuseLightPipeline.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ var ForwardDiffuseLightPipeline = new Class({
7272
* @since 3.25.0
7373
*/
7474
this.lightCount = 0;
75+
76+
this.forceZero = true;
7577
},
7678

7779
/**
@@ -276,10 +278,9 @@ var ForwardDiffuseLightPipeline = new Class({
276278
renderer.setNormalMap(normalTexture);
277279
}
278280

279-
if (gameObject)
280-
{
281-
this.setNormalMapRotation(gameObject.rotation);
282-
}
281+
var rotation = (gameObject) ? gameObject.rotation : 0;
282+
283+
this.setNormalMapRotation(rotation);
283284

284285
this.currentUnit = 0;
285286

0 commit comments

Comments
 (0)