提交 aca41425 编写于 作者: M Morgan Villedieu

Hide scene background when XR Session environmentBlendMode is additive

上级 18e4439b
......@@ -27,6 +27,9 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
var background = scene.background;
var session = renderer.vr.getSession();
if ( session && session.environmentBlendMode === 'additive' ) background = null;
if ( background === null ) {
setClear( clearColor, clearAlpha );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册