Skip to main content

Interface: MaterialXResource

One resource (texture, library, or other file) referenced by a MaterialX document.

archivePath is the normalized, archive-relative POSIX path (textures/albedo.png) that the document now references; sourcePath is the path it was originally read from.

Properties​

archivePath​

archivePath: string


data​

data: Uint8Array


document?​

optional document?: MaterialXDocument

Canonical tree for an included MaterialX document; serialized on output.


id?​

optional id?: string

Stable identity in a resolved dependency graph.


sourcePath​

sourcePath: string