loadFmatMaterial function Materials

Future<PreprocessedMaterial> loadFmatMaterial(
  1. String sourcePath, {
  2. String? package,
  3. String? bundleName,
  4. AssetBundle? bundle,
})

Implementation

Future<PreprocessedMaterial> loadFmatMaterial(
  String sourcePath, {
  String? package,
  String? bundleName,
  AssetBundle? bundle,
}) async {
  final registry = await FmatMaterialRegistry.load(bundle: bundle);
  return registry.loadMaterial(
    sourcePath,
    package: package,
    bundleName: bundleName,
  );
}