MCPcopy Create free account
hub / github.com/achrefelouafi/GrassSystemThreeJS / loadURL

Function loadURL

src/model.js:258–265  ·  view source on GitHub ↗
(url, onError)

Source from the content-addressed store, hash-verified

256 }
257
258 function loadURL(url, onError) {
259 loader.load(
260 url,
261 (gltf) => setModel(gltf.scene),
262 undefined,
263 (err) => onError && onError(err)
264 );
265 }
266
267 if (defaultUrl) loadURL(defaultUrl);
268

Callers 3

createModelSystemFunction · 0.85
importFileFunction · 0.85
loadModelFunction · 0.85

Calls 1

setModelFunction · 0.85

Tested by

no test coverage detected