GLTFDracoMeshCompressionExtension constructor

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

Implementation

GLTFDracoMeshCompressionExtension(this.json, this.dracoLoader) {
  name = gltfExtensions["KHR_DRACO_MESH_COMPRESSION"]!;

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

  dracoLoader.preload();
}