setFoveation method

void setFoveation(
  1. double foveation
)

Implementation

void setFoveation(double foveation ) {
  // 0 = no foveation = full resolution
  // 1 = maximum foveation = the edges render at lower resolution
  glProjLayer?.fixedFoveation = foveation;
  glBaseLayer?.fixedFoveation = foveation;

  this.foveation = foveation;
}