Type alias P3dTexture

P3dTexture: string | Blob

You can assign textures either as a string or a Blob.

A string should be either a:

  • HTTP(S) URL with CORS Access-Control-Allow-Origin rules configured so that it can be loaded by p3d.in
  • A data URL string

Alternatively a Blob can be used to replace the texture with any local image data, including a File

If you want to unassign the texture, set it to empty string.