|
@@ -27,8 +27,16 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
|
|
|
|
|
|
var background = scene.background;
|
|
var background = scene.background;
|
|
|
|
|
|
|
|
+ // Ignore background in AR
|
|
|
|
+ // TODO: Reconsider this.
|
|
|
|
+
|
|
var session = renderer.vr.getSession();
|
|
var session = renderer.vr.getSession();
|
|
- if ( session && session.environmentBlendMode === 'additive' ) background = null;
|
|
|
|
|
|
+
|
|
|
|
+ if ( session && session.environmentBlendMode === 'additive' ) {
|
|
|
|
+
|
|
|
|
+ background = null;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
if ( background === null ) {
|
|
if ( background === null ) {
|
|
|
|
|