initializeStaticResources static method

Future<void> initializeStaticResources()

Implementation

static Future<void> initializeStaticResources() {
  List<Future<void>> futures = [
    gpuTextureFromAsset('packages/flutter_scene/assets/ibl_brdf_lut.png')
        .then((gpu.Texture value) {
      _brdfLutTexture = value;
    }),
    gpuTextureFromAsset('packages/flutter_scene/assets/royal_esplanade.png')
        .then((gpu.Texture value) {
      _defaultRadianceTexture = value;
    }),
    gpuTextureFromAsset(
            'packages/flutter_scene/assets/royal_esplanade_irradiance.png')
        .then((gpu.Texture value) {
      _defaultIrradianceTexture = value;
    }),
  ];
  return Future.wait(futures);
}