Skip to content

Commit 30b37e7

Browse files
committed
WebGLBackground: Documented new logic.
1 parent 9599fb5 commit 30b37e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/renderers/webgl/WebGLBackground.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,16 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
2727

2828
var background = scene.background;
2929

30+
// Ignore background in AR
31+
// TODO: Reconsider this.
32+
3033
var session = renderer.vr.getSession();
31-
if ( session && session.environmentBlendMode === 'additive' ) background = null;
34+
35+
if ( session && session.environmentBlendMode === 'additive' ) {
36+
37+
background = null;
38+
39+
}
3240

3341
if ( background === null ) {
3442

0 commit comments

Comments
 (0)