提交 30b37e7b 编写于 作者: M Mr.doob

WebGLBackground: Documented new logic.

上级 9599fb57
......@@ -27,8 +27,16 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
var background = scene.background;
// Ignore background in AR
// TODO: Reconsider this.
var session = renderer.vr.getSession();
if ( session && session.environmentBlendMode === 'additive' ) background = null;
if ( session && session.environmentBlendMode === 'additive' ) {
background = null;
}
if ( background === null ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册