A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/XRProjectionLayer/fixedFoveation below:

XRProjectionLayer: fixedFoveation property - Web APIs

XRProjectionLayer: fixedFoveation property

Limited availability

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The fixedFoveation property of the XRProjectionLayer interface is a number indicating the amount of foveation used by the XR compositor for the layer. Fixed Foveated Rendering (FFR) renders the edges of the eye textures at a lower resolution than the center and reduces the GPU load.

It is most useful for low-contrast textures such as background images, but less for high-contrast ones such as text or detailed images. Authors can adjust the level on a per-frame basis to achieve the best tradeoff between performance and visual quality.

Value

A number between 0 and 1.

It's up to the user agent how to interpret the numbers in this range. When changing the foveation level, the effect will visible in the next XRFrame.

Note that some user agents might implement certain levels of foveation, so you might need to adjust the foveation level in large increments to see an effect. Example levels:

Some devices don't support foveated rendering. In that case fixedFoveation is null and setting it will not do anything.

Examples Dynamically setting the level of fixed foveation rendering

The fixedFoveation property allows you to set the level of foveation at runtime and for each frame. To set the maximum foveation for a given XRProjectionLayer, use a value of 1.

let glProjectionLayer = glBinding.createProjectionLayer(/* … */);
glProjectionLayer.fixedFoveation = 1; // maximum foveation
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4