How to upload a texture and apply it to a standard material. This example uses a PNG image.
canvas with id vulfram-canvas.1. Load the image into bytes.
2. Send it with uploadBuffer using image-data.
3. Create the texture with source: { type: 'buffer', bufferId }.
4. Attach the texture to the standard material (baseTexId).
Place stone.png in static/textures to access it at /textures/stone.png.
The live demo on this page uses an embedded texture so it works out of the box.