Monado OpenXR Runtime
u_cardboard_distortion_values Struct Reference

Values to create a distortion mesh from cardboard values. More...

#include <util/u_distortion.h>

Collaboration diagram for u_cardboard_distortion_values:

Data Fields

float distortion_k [5]
 Cardboard distortion k values. More...
 
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
 

Detailed Description

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))

Field Documentation

◆ distortion_k

float u_cardboard_distortion_values::distortion_k[5]

Cardboard distortion k values.

◆ offset

struct xrt_vec2 u_cardboard_distortion_values::offset

Used to transform to and from tanangle space.

◆ size

struct xrt_vec2 u_cardboard_distortion_values::size

Used to transform to and from tanangle space.


The documentation for this struct was generated from the following file: