fromUIImages static method
Implementation
static Future<EnvironmentMap> fromUIImages(
{required ui.Image radianceImage, ui.Image? irradianceImage}) async {
final radianceTexture = await gpuTextureFromImage(radianceImage);
gpu.Texture? irradianceTexture;
if (irradianceImage != null) {
irradianceTexture = await gpuTextureFromImage(irradianceImage);
}
return EnvironmentMap.fromGpuTextures(
radianceTexture: radianceTexture, irradianceTexture: irradianceTexture);
}