function(resolution) {
  this.width = canvas.width = window.innerWidth;
  this.height = canvas.height = window.innerHeight;
  this.resolution = resolution;
  this.spacing = this.width / resolution;
  this.focalLen = this.height / this.width;
  this.range = isMobile ? 9 : 18;
  this.lightRange = 9;
  this.scale = canvas.width / 1200;
}
function(resolution) {
  this.width = canvas.width = window.innerWidth;
  this.height = canvas.height = window.innerHeight;
  this.resolution = resolution;
  this.spacing = this.width / resolution;
  this.focalLen = this.height / this.width;
  this.range = isMobile ? 9 : 18;
  this.lightRange = 9;
  this.scale = canvas.width / 1200;
}
function ( resolution ) { this . width = canvas . width = window . innerWidth ; this . height = canvas . height = window . innerHeight ; this . resolution = resolution ; this . spacing = this . width / resolution ; this . focalLen = this . height / this . width ; this . range = isMobile ? 9 : 18 ; this . lightRange = 9 ; this . scale = canvas . width / 1200 ; }
Camera that draws everything you see on the screen from the player's perspective.
@param {Number} resolution Resolution to render at (higher has better quality, but lower performance).
Camera that draws everything you see on the screen from the player s perspective .
Initialize the cubemap