Using ImageAssetTask

I’m trying using ImageAssetTask but I don’t know how to pass the HtmlImageElement to the Texture constructor.

I’ve tried:
mat.diffuseTexture = new BABYLON.Texture(null,scene,undefined,undefined,undefined,undefined,undefined,imgTask.image);

See this playground.

It seems you should use an asset manager to add a task image: Asset Manager | Babylon.js Documentation

I’m no export with asset managing, however.