Header menu logo Mibo

Batch3DConfig Type

Configuration for Batch3DRenderer.

This controls the rendering pass defaults (clears + device state), not per-mesh material setup.

Record fields

Record Field Description

CacheBasicEffectLighting

Full Usage: CacheBasicEffectLighting

Field type: bool

Enables caching of BasicEffect lighting setup.

If you want to animate lights every frame, disable caching.

Field type: bool

ClearColor

Full Usage: ClearColor

Field type: Color voption

Optional color buffer clear.

Field type: Color voption

ClearDepth

Full Usage: ClearDepth

Field type: bool

Whether to clear the depth buffer before rendering.

Field type: bool

OpaqueBlendState

Full Usage: OpaqueBlendState

Field type: BlendState
Field type: BlendState

OpaqueDepthStencilState

Full Usage: OpaqueDepthStencilState

Field type: DepthStencilState
Field type: DepthStencilState

RasterizerState

Full Usage: RasterizerState

Field type: RasterizerState
Field type: RasterizerState

RestoreDeviceStates

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).

Field type: bool

SortOpaqueFrontToBack

Full Usage: SortOpaqueFrontToBack

Field type: bool

If true, opaque draws are sorted front-to-back by distance to camera.

This can reduce overdraw.

Field type: bool

SpriteOpaqueBlendState

Full Usage: SpriteOpaqueBlendState

Field type: BlendState
Field type: BlendState

SpriteOpaqueDepthStencilState

Full Usage: SpriteOpaqueDepthStencilState

Field type: DepthStencilState
Field type: DepthStencilState

SpriteRasterizerState

Full Usage: SpriteRasterizerState

Field type: RasterizerState

Rasterizer state used for Sprite3D draws (billboards/quads).

Field type: RasterizerState

SpriteSamplerState

Full Usage: SpriteSamplerState

Field type: SamplerState

Sampler state used for Sprite3D draws (billboards/quads).

Field type: SamplerState

SpriteTransparentBlendState

Full Usage: SpriteTransparentBlendState

Field type: BlendState
Field type: BlendState

SpriteTransparentDepthStencilState

Full Usage: SpriteTransparentDepthStencilState

Field type: DepthStencilState
Field type: DepthStencilState

TransparentBlendState

Full Usage: TransparentBlendState

Field type: BlendState
Field type: BlendState

TransparentDepthStencilState

Full Usage: TransparentDepthStencilState

Field type: DepthStencilState
Field type: DepthStencilState

Type something to start searching.