fromAssets static method
Loads an EnvironmentMap from an equirectangular sRGB radiance image in the asset bundle (see fromUIImages).
Implementation
static Future<EnvironmentMap> fromAssets({
required String radianceImagePath,
List<Vector3>? diffuseSphericalHarmonics,
}) async {
final environment = await fromUIImages(
radianceImage: await imageFromAsset(radianceImagePath),
diffuseSphericalHarmonics: diffuseSphericalHarmonics,
);
_environmentAssetPaths[environment] = radianceImagePath;
return environment;
}