Header menu logo Mibo

Command3D Type

Closed set of 3D render commands. Stored in RenderBuffer3D and dispatched via pattern matching — no interface boxing.

Fields use native MonoGame types (Model, ModelMeshPart, Effect, Texture2D, etc.) for zero-copy interop with the MonoGame pipeline.

Union cases

Union case Description

AddDirectionalLight dLight

Full Usage: AddDirectionalLight dLight

Parameters:

AddPointLight pLight

Full Usage: AddPointLight pLight

Parameters:
pLight : PointLight3D

AddSpotLight sLight

Full Usage: AddSpotLight sLight

Parameters:
sLight : SpotLight3D

BeginCamera camera

Full Usage: BeginCamera camera

Parameters:
camera : Camera3D

BeginCameraConfig config

Full Usage: BeginCameraConfig config

Parameters:
config : Camera3DConfig

BeginEffect effect

Full Usage: BeginEffect effect

Parameters:
effect : Effect

DisableShadows

Full Usage: DisableShadows

DrawAnimatedModel(model, transform, bones)

Full Usage: DrawAnimatedModel(model, transform, bones)

Parameters:
model : Model
transform : Matrix
bones : Matrix[]

DrawAnimatedModelWith(model, transform, bones, matOverride)

Full Usage: DrawAnimatedModelWith(model, transform, bones, matOverride)

Parameters:
model : Model
transform : Matrix
bones : Matrix[]
matOverride : MaterialOverride

DrawBillboard(texture, position, size, color)

Full Usage: DrawBillboard(texture, position, size, color)

Parameters:
texture : Texture2D
position : Vector3
size : Vector2
color : Color

DrawBillboardBatch(textures, positions, sizes, colors, count)

Full Usage: DrawBillboardBatch(textures, positions, sizes, colors, count)

Parameters:
textures : Texture2D[]
positions : Vector3[]
sizes : Vector2[]
colors : Color[]
count : int

DrawImmediate action

Full Usage: DrawImmediate action

Parameters:
action : SceneContext -> unit

DrawInstanced(mesh, transforms, material, instanceCount)

Full Usage: DrawInstanced(mesh, transforms, material, instanceCount)

Parameters:
mesh : PrimitiveMesh
transforms : Matrix[]
material : Material3D
instanceCount : int

DrawLine3D(start, finish, color)

Full Usage: DrawLine3D(start, finish, color)

Parameters:
start : Vector3
finish : Vector3
color : Color

DrawMeshEffect(meshPart, transform, effect)

Full Usage: DrawMeshEffect(meshPart, transform, effect)

Parameters:
meshPart : ModelMeshPart
transform : Matrix
effect : Effect

DrawModel(model, transform)

Full Usage: DrawModel(model, transform)

Parameters:
model : Model
transform : Matrix

DrawModelWith(model, transform, matOverride)

Full Usage: DrawModelWith(model, transform, matOverride)

Parameters:
model : Model
transform : Matrix
matOverride : MaterialOverride

DrawPrimitive(mesh, transform, material)

Full Usage: DrawPrimitive(mesh, transform, material)

Parameters:
mesh : PrimitiveMesh
transform : Matrix
material : Material3D

EnableShadows

Full Usage: EnableShadows

EndCamera

Full Usage: EndCamera

EndEffect

Full Usage: EndEffect

PostProcess ppAction

Full Usage: PostProcess ppAction

Parameters:

A post-process action that reads only color (PostProcessContext3D.Source). Emits no scene-depth production — use for color-only effects (desaturation, vignette, blur). Cheap: costs only the scene render target + ping-pong, never a depth pass.

ppAction : PostProcessContext3D -> unit

PostProcessWithDepth ppAction

Full Usage: PostProcessWithDepth ppAction

Parameters:

A post-process action that needs camera-POV scene depth (PostProcessContext3D.Depth) in addition to color — fog, depth-of-field, SSAO. When at least one is present this frame, the pipeline renders scene depth to an R32F target and exposes it via PostProcessContext3D.Depth; use plain Command3D.PostProcess instead when an effect doesn't sample depth, so the depth pass is skipped entirely.

ppAction : PostProcessContext3D -> unit

SetAmbientLight aLight

Full Usage: SetAmbientLight aLight

Parameters:
aLight : AmbientLight3D

SetShadowOrigin origin

Full Usage: SetShadowOrigin origin

Parameters:
origin : Vector3

Instance members

Instance member Description

this.IsAddDirectionalLight

Full Usage: this.IsAddDirectionalLight

Returns: bool
Returns: bool

this.IsAddPointLight

Full Usage: this.IsAddPointLight

Returns: bool
Returns: bool

this.IsAddSpotLight

Full Usage: this.IsAddSpotLight

Returns: bool
Returns: bool

this.IsBeginCamera

Full Usage: this.IsBeginCamera

Returns: bool
Returns: bool

this.IsBeginCameraConfig

Full Usage: this.IsBeginCameraConfig

Returns: bool
Returns: bool

this.IsBeginEffect

Full Usage: this.IsBeginEffect

Returns: bool
Returns: bool

this.IsDisableShadows

Full Usage: this.IsDisableShadows

Returns: bool
Returns: bool

this.IsDrawAnimatedModel

Full Usage: this.IsDrawAnimatedModel

Returns: bool
Returns: bool

this.IsDrawAnimatedModelWith

Full Usage: this.IsDrawAnimatedModelWith

Returns: bool
Returns: bool

this.IsDrawBillboard

Full Usage: this.IsDrawBillboard

Returns: bool
Returns: bool

this.IsDrawBillboardBatch

Full Usage: this.IsDrawBillboardBatch

Returns: bool
Returns: bool

this.IsDrawImmediate

Full Usage: this.IsDrawImmediate

Returns: bool
Returns: bool

this.IsDrawInstanced

Full Usage: this.IsDrawInstanced

Returns: bool
Returns: bool

this.IsDrawLine3D

Full Usage: this.IsDrawLine3D

Returns: bool
Returns: bool

this.IsDrawMeshEffect

Full Usage: this.IsDrawMeshEffect

Returns: bool
Returns: bool

this.IsDrawModel

Full Usage: this.IsDrawModel

Returns: bool
Returns: bool

this.IsDrawModelWith

Full Usage: this.IsDrawModelWith

Returns: bool
Returns: bool

this.IsDrawPrimitive

Full Usage: this.IsDrawPrimitive

Returns: bool
Returns: bool

this.IsEnableShadows

Full Usage: this.IsEnableShadows

Returns: bool
Returns: bool

this.IsEndCamera

Full Usage: this.IsEndCamera

Returns: bool
Returns: bool

this.IsEndEffect

Full Usage: this.IsEndEffect

Returns: bool
Returns: bool

this.IsPostProcess

Full Usage: this.IsPostProcess

Returns: bool
Returns: bool

this.IsPostProcessWithDepth

Full Usage: this.IsPostProcessWithDepth

Returns: bool
Returns: bool

this.IsSetAmbientLight

Full Usage: this.IsSetAmbientLight

Returns: bool
Returns: bool

this.IsSetShadowOrigin

Full Usage: this.IsSetShadowOrigin

Returns: bool
Returns: bool

Type something to start searching.