AbstractThe Babylon mesh the batch draws with. Its world matrix is frozen at identity: the instance data is already in world space, so no parent's transform moves the particles again.
The settings every system in the batch shares, with what the render mode ignores at its default.
The systems drawn by this batch.
Seconds of renderer time, set by the renderer before each fill; what UV and erosion mask scrolling advance by.
Static ReadonlySHRINK_How many fills in a row a batch may use under a quarter of its buffers before it halves them: about five seconds at 60 frames per second. A burst that grew the buffers does not hold that memory for the rest of the session, and a batch whose count swings does not reallocate every few frames.
ProtectedbindSets the soft-particle and alpha-test values on a material, and decodes the depth for the camera of each draw.
ProtectedbindSets the material colour, the texture effects' textures and constants, and advances their scrolling on every bind.
ProtectedconfigureApplies the batch-level scene settings to mesh. Called on every mesh the batch creates, since the buffers rebuild it.
alphaIndex from the system's render order puts the batch where the
author said among the scene's transparent meshes, and the rendering
group and layer mask reach the mesh at all (they used to stop at the
settings).
ProtecteddrawsTrue when this batch draws soft particles: they are on and a depth texture is attached.
Visible systems of this batch, written into a buffer owned by the batch. Called once per frame per batch, so the result is reused rather than reallocated; treat it as valid only until the next call.
ProtectedrefreshSets mesh's bounds to the union of the world bounds of the systems from from to to among
those the batch draws this frame, so Babylon skips the draw when none of them is in view: the
batch mesh over the systems it draws, a run's mesh over its own. Called after each fill. A
draw whose systems have no measured bounds stays always drawn.
ProtectedusesTrue when a texture effect of this batch samples UV channel 1, see UVChannel.
Protected StaticwriteWrites a uniform that changes per bind, such as one read off the active camera, to the material for the next bind and to its bound effect for this one: ShaderMaterial uploads its stored values before the bind observers run, so a value written only to the material would reach the GPU one draw late, and with two cameras it would always be the other camera's.
One draw call of a BatchedRenderer: the systems that share a material, texture and geometry, drawn together from one instanced mesh. The renderer makes and frees batches as systems are added and their settings change; read them through
renderer.batchesto inspect what is drawn, not to change it.