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

Merge pull request #18606 from Firepal/dev

WebXRManager: Added framebuffer scaling back in
......@@ -16,7 +16,7 @@ function WebXRManager( renderer, gl ) {
var session = null;
// var framebufferScaleFactor = 1.0;
var framebufferScaleFactor = 1.0;
var referenceSpace = null;
var referenceSpaceType = 'local-floor';
......@@ -166,9 +166,16 @@ function WebXRManager( renderer, gl ) {
}
this.setFramebufferScaleFactor = function ( /* value */ ) {
this.setFramebufferScaleFactor = function ( value ) {
// framebufferScaleFactor = value;
framebufferScaleFactor = value;
// Warn if function is used while presenting
if ( scope.isPresenting == true ) {
console.warn( "WebXRManager: Cannot change framebuffer scale while presenting VR content" );
}
};
......@@ -210,7 +217,8 @@ function WebXRManager( renderer, gl ) {
antialias: attributes.antialias,
alpha: attributes.alpha,
depth: attributes.depth,
stencil: attributes.stencil
stencil: attributes.stencil,
framebufferScaleFactor: framebufferScaleFactor
};
// eslint-disable-next-line no-undef
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册