- _getColorArray
PoolColorArray _getColorArray()
- _getCustomDataArray
PoolColorArray _getCustomDataArray()
- _getTransformArray
PoolVector3Array _getTransformArray()
- _setColorArray
void _setColorArray(PoolColorArray arg0)
- _setCustomDataArray
void _setCustomDataArray(PoolColorArray arg0)
- _setTransformArray
void _setTransformArray(PoolVector3Array arg0)
- getAabb
AABB getAabb()
Return the visibility AABB.
- getColorFormat
MultiMesh.ColorFormat getColorFormat()
- getCustomDataFormat
MultiMesh.CustomDataFormat getCustomDataFormat()
- getInstanceColor
Color getInstanceColor(long instance)
Get the color of a specific instance.
- getInstanceCount
long getInstanceCount()
- getInstanceCustomData
Color getInstanceCustomData(long instance)
- getInstanceTransform
Transform getInstanceTransform(long instance)
Return the transform of a specific instance.
- getMesh
Ref!Mesh getMesh()
- getTransformFormat
MultiMesh.TransformFormat getTransformFormat()
- opAssign
MultiMesh opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(MultiMesh other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setColorFormat
void setColorFormat(long format)
- setCustomDataFormat
void setCustomDataFormat(long format)
- setInstanceColor
void setInstanceColor(long instance, Color color)
Set the color of a specific instance.
- setInstanceCount
void setInstanceCount(long count)
- setInstanceCustomData
void setInstanceCustomData(long instance, Color custom_data)
- setInstanceTransform
void setInstanceTransform(long instance, Transform transform)
Set the transform for a specific instance.
- setMesh
void setMesh(Mesh mesh)
- setTransformFormat
void setTransformFormat(long format)
- colorArray
PoolColorArray colorArray [@property setter]
- colorArray
PoolColorArray colorArray [@property getter]
- colorFormat
MultiMesh.ColorFormat colorFormat [@property getter]
long colorFormat [@property setter]
- customDataArray
PoolColorArray customDataArray [@property getter]
PoolColorArray customDataArray [@property setter]
- customDataFormat
MultiMesh.CustomDataFormat customDataFormat [@property getter]
long customDataFormat [@property setter]
- instanceCount
long instanceCount [@property getter]
long instanceCount [@property setter]
- mesh
Mesh mesh [@property getter]
Mesh mesh [@property setter]
- transformArray
PoolVector3Array transformArray [@property getter]
PoolVector3Array transformArray [@property setter]
- transformFormat
MultiMesh.TransformFormat transformFormat [@property getter]
long transformFormat [@property setter]
Provides high performance mesh instancing.
MultiMesh provides low level mesh instancing. If the amount of Mesh instances needed goes from hundreds to thousands (and most need to be visible at close proximity) creating such a large amount of MeshInstance nodes may affect performance by using too much CPU or video memory. For this case a MultiMesh becomes very useful, as it can draw thousands of instances with little API overhead. As a drawback, if the instances are too far away of each other, performance may be reduced as every single instance will always rendered (they are spatially indexed as one, for the whole object). Since instances may have any behavior, the AABB used for visibility must be provided by the user.