未验证 提交 9b72e6c7 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15894 from mvilledieu/WebGLBackground--Hide-background-on-additive-XR-devices

WebGLBackground: Hide scene background when XR Session environmentBlendMode is additive
......@@ -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.
先完成此消息的编辑!
想要评论请 注册