MaterialCreator constructor

MaterialCreator(
  1. dynamic baseUrl,
  2. dynamic options
)

Implementation

MaterialCreator(baseUrl, options) {
  this.baseUrl = baseUrl ?? "";
  this.options = options ?? {};
  this.materialsInfo = {};
  this.materials = {};
  this.materialsArray = [];
  this.nameLookup = {};

  this.crossOrigin = 'anonymous';

  this.side =
      (this.options["side"] != null) ? this.options["side"] : FrontSide;
  this.wrap =
      (this.options["wrap"] != null) ? this.options["wrap"] : RepeatWrapping;
}