setEnvironment method

Future<void> setEnvironment(
  1. String hdrPath
)

Set the environment HDR for image-based lighting.

hdrPath should be an asset path like 'environments/studio_small.hdr'.

Implementation

Future<void> setEnvironment(String hdrPath) async {
  _ensureAttached();
  await _channel!.invokeMethod('setEnvironment', {'hdrPath': hdrPath});
}