Class: RenderList

RenderList

new RenderList()

渲染列表

Members Show Inherited

Name Type Default Description
className String RenderList
isRenderList Boolean true
useInstanced Boolean false

使用 instanced

opaqueList Array

不透明物体列表

transparentList Array

透明物体列表

instancedDict Object

instanced物体字典

Methods Show Inherited

重置列表

traverse(callback, instancedCallback)

遍历列表执行回调

Name Type Default Description
callback RenderList~traverseCallback

callback(mesh)

instancedCallback RenderList~instancedTraverseCallback null optional

instancedCallback(instancedMeshes)

addMesh(mesh, camera)

增加 mesh

Name Type Description
mesh Mesh
camera Camera

Type Definitions

traverseCallback(mesh)

Name Type Description
mesh Mesh

instancedTraverseCallback(meshes)

Name Type Description
meshes Array.<Mesh>