Skip to content
On this page

glbLayer

GlbLayer

Kind: global class

new GlbLayer(renderer)

glb 模型图层

ParamTypeDescription
rendererftthree.renderer渲染器

glbLayer.addGltfModel(url, key, config, callback)

加载 glb 或者是 gltf 格式的模型

Kind: instance method of GlbLayer

ParamTypeDescription
urlstringglb 地址
keystringglb 图层名称
configobject需要存储在 glb 的要素信息
callbackfunction回调函数(返回模型以及模型动画)