MeshBasicMaterial constructor

MeshBasicMaterial({
  1. Color? color,
  2. Uint8List? map,
  3. int? mapWidth,
  4. int? mapHeigth,
  5. bool checkerboard = false,
})

Implementation

MeshBasicMaterial({
  this.color,
  this.map,
  this.mapWidth,
  this.mapHeigth,
  this.checkerboard = false,
}) {
  color ??= Color(1, 1, 1, 1);

  // Set the material uniforms;
  uniforms['u_colorMult'] = color!.toArray();
}