removeIbl method

  1. @override
Future removeIbl({
  1. bool destroy = true,
})
override

Implementation

@override
Future removeIbl({bool destroy = true}) async {
  var ibl = await scene.getIndirectLight();
  await scene.setIndirectLight(null);
  if (ibl != null && destroy) {
    await ibl.destroy();
  }
  if (_iblTextureUploadComplete != null) {
    await FilamentApp.instance!.flush();
    await _iblTextureUploadComplete!;
    _iblTextureUploadComplete = null;
  }
}