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

Method createTexture

packages/core/src/document.ts:266–268  ·  view source on GitHub ↗

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

(name = '')

Source from the content-addressed store, hash-verified

264
265 /** Creates a new {@link Texture} attached to this document's {@link Root}. */
266 createTexture(name = ''): Texture {
267 return new Texture(this._graph, name);
268 }
269
270 /** Creates a new {@link Animation} attached to this document's {@link Root}. */
271 createAnimation(name = ''): Animation {

Callers 15

document.test.tsFile · 0.80
root.test.tsFile · 0.80
texture.test.tsFile · 0.80
material.test.tsFile · 0.80
createTextureFunction · 0.80
node-io.test.tsFile · 0.80
readMethod · 0.80
getParamsFunction · 0.80
ktxfix.test.tsFile · 0.80
mergeFunction · 0.80

Calls

no outgoing calls

Tested by 2

createTextureFunction · 0.64
getParamsFunction · 0.64