|
Monado OpenXR Runtime
|
Values to create a distortion mesh from cardboard values. More...
#include <util/u_distortion.h>

Data Fields | ||
| float | distortion_k [5] | |
| Cardboard distortion k values. | ||
| struct { | ||
| struct xrt_vec2 size | ||
| Used to transform to and from tanangle space. More... | ||
| struct xrt_vec2 offset | ||
| Used to transform to and from tanangle space. More... | ||
| } | screen | |
| struct { | ||
| struct xrt_vec2 size | ||
| Used to transform to and from tanangle space. More... | ||
| struct xrt_vec2 offset | ||
| Used to transform to and from tanangle space. More... | ||
| } | texture | |
Values to create a distortion mesh from cardboard values.
This matches the formula in the cardboard SDK, while the array is fixed size setting the K value to zero will make it not have a effect.
p' = p (1 + K0 r^2 + K1 r^4 + ... + Kn r^(2n))
| float u_cardboard_distortion_values::distortion_k[5] |
Cardboard distortion k values.
Referenced by u_compute_distortion_cardboard(), and u_distortion_cardboard_calculate().
| struct xrt_vec2 u_cardboard_distortion_values::offset |
Used to transform to and from tanangle space.
Referenced by u_compute_distortion_cardboard(), and u_distortion_cardboard_calculate().
| struct xrt_vec2 u_cardboard_distortion_values::size |
Used to transform to and from tanangle space.
Referenced by u_compute_distortion_cardboard(), and u_distortion_cardboard_calculate().