LightmapBaker constructor

const LightmapBaker({
  1. double texelsPerMeter = 4.0,
  2. int bounces = 2,
  3. int samples = 64,
  4. int seed = 1,
  5. bool includeDirect = false,
  6. double texturedAlbedo = 0.5,
})

A baker of four texels per metre, two bounces of 64 rays per texel, seed 1, indirect light only, and a textured albedo of 0.5 unless given. Asserts bounces is not negative and samples is positive.

Implementation

const LightmapBaker({
  this.texelsPerMeter = 4.0,
  this.bounces = 2,
  this.samples = 64,
  this.seed = 1,
  this.includeDirect = false,
  this.texturedAlbedo = 0.5,
}) : assert(bounces >= 0),
     assert(samples > 0);