enableBackgroundFromAsset method

Future<void> enableBackgroundFromAsset(
  1. String assetPath
)

Enables the background using an asset image.

Implementation

Future<void> enableBackgroundFromAsset(String assetPath) async {
  _bg ??= SkydomeBackground(_gl);
  await _bg!.setImageFromAsset(assetPath);
  _bg?.setYawPitchDegrees(90, 0); // pitch only → flips sky/ground
  _bgAssetPath = assetPath;
}