Options
All
  • Public
  • Public/Protected
  • All
Menu

P3d.in Embed API

Index

Type Aliases

P3dColor: string | number[]

Color values are hexadecimal strings. Eg. fff or ffffff 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.

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.

P3dTextureType: "baseColorTexture" | "bumpTexture" | "glowTexture" | "metalnessTexture" | "roughnessTexture" | "normalTexture" | "sheenTexture"

Identifier of a texture type

Generated using TypeDoc