Batch3DConfig Type
Configuration for Batch3DRenderer.
This controls the rendering pass defaults (clears + device state), not per-mesh material setup.
Record fields
| Record Field |
Description
|
Full Usage:
CacheBasicEffectLighting
Field type: bool
|
Enables caching of BasicEffect lighting setup. If you want to animate lights every frame, disable caching.
|
|
Optional color buffer clear.
|
Full Usage:
ClearDepth
Field type: bool
|
Whether to clear the depth buffer before rendering.
|
|
|
|
|
|
|
Full Usage:
RestoreDeviceStates
Field type: bool
|
Whether to restore the previous GraphicsDevice states after rendering. This makes composition with other renderers more predictable (at a small cost).
|
Full Usage:
SortOpaqueFrontToBack
Field type: bool
|
If true, opaque draws are sorted front-to-back by distance to camera. This can reduce overdraw.
|
|
|
|
|
|
Rasterizer state used for Sprite3D draws (billboards/quads).
|
|
Sampler state used for Sprite3D draws (billboards/quads).
|
|
|
|
|
|
|
|
|
Mibo