This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains a proposal to add a OvrUtilities.gdns that has at the moment two functions exposed.
1.: get_ipd(): uses the left and right view matrix to compute and return the current IPD by computing the difference between the left and right eye position.. This can be used to see what IPD was set using the hardware slider on the Oculus Quest (and will also return the IPD of the other oculus mobile headsets)
2: set_default_layer_color_scale(r, g, b, a): this exposes the layer color multiplyer from the VrAPI for the default layer (that is used to display the rendered scene). The main use-case for this is to implement efficient fade to black. Using std. post processing for this is too expensive on tiled rendering architectures (see also #45). For this reason the ColorScale is exposed on each layer.
In the future the OvrUtilities.gdns can also be used to expose other funcitonality to a user like using/configuring the compositing layers.