Interface MaterialIndex

An external Material index.

Hierarchy

  • MaterialIndex

Properties

basePath?: string

The optional attribute provides a partial URI to be added to all relative asset uris. A valid base path should normally start with https:// or file://, and end with either a slash or the path sepa- rator character of the operating system.

hashes?: Record<string, string>

The mandatory attribute provides unique content hashes for assets that are directly referenced in the OC data set. The specific hash algorithm is unspecified. It may be an MD5 hash of the binary content for instance. But low-res assets may use the same hash as the originals, they are derived from. So, the only operation that is legal for hash, is to compare them with an optionally existing one.

materials: Record<string, Material>

The mandatory attribute provides an embedded Material index.

Generated using TypeDoc