loadIbl method

  1. @override
Future loadIbl(
  1. String lightingPath, {
  2. double intensity = 30000,
})
override

Loads an image-based light from the specified path at the given intensity. Only one IBL can be active at any given time; if an IBL has already been loaded, it will be replaced.

Implementation

@override
Future loadIbl(String lightingPath, {double intensity = 30000}) async {
  var promise = _module.ccall(
      "load_ibl",
      "void",
      ["void*".toJS, "string".toJS, "float".toJS].toJS,
      [_viewer!, lightingPath.toJS, intensity.toJS].toJS,
      {"async": true}.jsify()) as JSPromise;
  await promise.toDart;
}