对于WebVR,我发现:vrDisplay.requestPresent([{源:canvas,属性:{highRefreshRate:true}}])]
仅适用于WebXR:requiredFeatures:[“ local-floor”]
对于必填功能:[“ highRefreshRate”]。我在Oculus Go中收到“请求的无法识别的功能:highRefreshRate”错误。我可以获得受支持的功能吗?
以及如何设置'foveationLevel:3'?
尚未指定AFAIK的浮动和高刷新率功能。
但是,如果您愿意进行功能检测和处理故障,除了local-floor
这样的标准字符串外,这是Oculus Browser还将识别的字符串。]
no-fixed-foveation
,low-fixed-foveation-level
,medium-fixed-foveation-level
,high-fixed-foveation-level
low-refresh-rate
,high-refresh-rate
ca-correction
例如:
button.onclick = async () => {
let session = await navigator.xr.requestSession('immersive-vr', {
requiredFeatures: ['high-fixed-foveation-level', 'low-refresh-rate']
});
...
};