MCPcopy
hub / github.com/donmccurdy/glTF-Transform / createMaterial

Method createMaterial

packages/core/src/document.ts:261–263  ·  view source on GitHub ↗

Creates a new Material attached to this document's Root.

(name = '')

Source from the content-addressed store, hash-verified

259
260 /** Creates a new {@link Material} attached to this document's {@link Root}. */
261 createMaterial(name = ''): Material {
262 return new Material(this._graph, name);
263 }
264
265 /** Creates a new {@link Texture} attached to this document's {@link Root}. */
266 createTexture(name = ''): Texture {

Callers 15

root.test.tsFile · 0.80
texture.test.tsFile · 0.80
mesh.test.tsFile · 0.80
material.test.tsFile · 0.80
readMethod · 0.80
cli.test.tsFile · 0.80
getParamsFunction · 0.80
ktxfix.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 2

getParamsFunction · 0.64
createMaterialsFunction · 0.64