浏览代码

WebXRManager: Document .setFramebufferScaleFactor().

Mugen87 5 年之前
父节点
当前提交
e5007296df
共有 2 个文件被更改,包括 26 次插入0 次删除
  1. 13 0
      docs/api/en/renderers/webxr/WebXRManager.html
  2. 13 0
      docs/api/zh/renderers/webxr/WebXRManager.html

+ 13 - 0
docs/api/en/renderers/webxr/WebXRManager.html

@@ -55,6 +55,19 @@
 		in two different coordinate spaces for the same WebXR controller.
 		</p>
 
+		<h3>[method:void setFramebufferScaleFactor]( [param:Float framebufferScaleFactor] )</h3>
+		<p>
+		[page:Float framebufferScaleFactor] — The framebuffer scale factor to set.<br /><br />
+
+		Specifies the scaling factor to use when determining the size of the framebuffer when rendering to a XR device.
+		The value is relative to the default XR device display resolution. Default is *1*. A value of *0.5* would specify
+		a framebuffer with 50% of the display's native resolution.
+		</p>
+
+		<p>
+		Note: It is not possible to change the framebuffer scale factor while presenting XR content.
+		</p>
+
 		<h2>Source</h2>
 
 		<p>

+ 13 - 0
docs/api/zh/renderers/webxr/WebXRManager.html

@@ -55,6 +55,19 @@
 		in two different coordinate spaces for the same WebXR controller.
 		</p>
 
+		<h3>[method:void setFramebufferScaleFactor]( [param:Float framebufferScaleFactor] )</h3>
+		<p>
+		[page:Float framebufferScaleFactor] — The framebuffer scale factor to set.<br /><br />
+
+		Specifies the scaling factor to use when determining the size of the framebuffer when rendering to a XR device.
+		The value is relative to the default XR device display resolution. Default is *1*. A value of *0.5* would specify
+		a framebuffer with 50% of the display's native resolution.
+		</p>
+
+		<p>
+		Note: It is not possible to change the framebuffer scale factor while presenting XR content.
+		</p>
+
 		<h2>Source</h2>
 
 		<p>