GLTFDracoMeshCompressionExtension constructor

GLTFDracoMeshCompressionExtension(
  1. dynamic json,
  2. dynamic dracoLoader
)

Implementation

GLTFDracoMeshCompressionExtension(json, dracoLoader) {
  if (dracoLoader == null) {
    throw ('THREE.GLTFLoader: No DRACOLoader instance provided.');
  }

  this.json = json;
  this.dracoLoader = dracoLoader;
  this.dracoLoader.preload();
}