getDefaultEnvironmentMap static method

EnvironmentMap getDefaultEnvironmentMap()

Implementation

static EnvironmentMap getDefaultEnvironmentMap() {
  if (_defaultRadianceTexture == null || _defaultIrradianceTexture == null) {
    throw Exception('Default environment map has not been initialized.');
  }
  return EnvironmentMap.fromGpuTextures(
      radianceTexture: _defaultRadianceTexture!,
      irradianceTexture: _defaultIrradianceTexture!);
}