You can assign textures either as a string or a Blob.
A string should be either a:
Access-Control-Allow-Origin
rules configured so that it can be loaded by p3d.indata URL
stringAlternatively 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.
Identifier of a texture type
Generated using TypeDoc
Color values are hexadecimal strings. Eg.
fff
orffffff
for white.You can however also assign an array of red, green and blue floating point values, i.e.
[1.0, 1.0, 1.0]
. This will be converted to hex color automatically.