Hello friends
I want to upload a photo on the server and enter it into Playcanvas through a link
And put that photo on diffusemap as a material with the ability to change the diffusemap if that link changes
Hi @MaDBoY,
For the last bit, load the image through link you can use this method on the this.app.assets
object:
https://developer.playcanvas.com/en/api/pc.AssetRegistry.html#loadFromUrl
From there you can easily add the loaded texture on your material diffuse channel like this:
material.diffuseMap = texture;
material.update();