Header menu logo Mibo

Command3D Type

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

Union cases

Union case Description

AddDirectionalLight AddDlight

Full Usage: AddDirectionalLight AddDlight

Parameters:
AddDlight : DirectionalLight3D

AddPointLight AddPlight

Full Usage: AddPointLight AddPlight

Parameters:
AddPlight : PointLight3D

AddSpotLight AddSlight

Full Usage: AddSpotLight AddSlight

Parameters:
AddSlight : SpotLight3D

BeginCamera camera

Full Usage: BeginCamera camera

Parameters:
camera : Camera3D

BeginCameraConfig config

Full Usage: BeginCameraConfig config

Parameters:
config : Camera3DConfig

BeginEffect shader

Full Usage: BeginEffect shader

Parameters:
shader : Shader

DisableShadows

Full Usage: DisableShadows

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

DrawLine3D(start, finish, color)

Full Usage: DrawLine3D(start, finish, color)

Parameters:
start : Vector3
finish : Vector3
color : Color

DrawMesh(mesh, transform, material)

Full Usage: DrawMesh(mesh, transform, material)

Parameters:
mesh : Mesh
transform : Matrix4x4
material : Material3D

DrawMeshInstanced(mesh, transforms, material, instanceCount)

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

Parameters:
mesh : Mesh
transforms : Matrix4x4[]
material : Material3D
instanceCount : int

DrawModel(model, transform)

Full Usage: DrawModel(model, transform)

Parameters:
model : Model
transform : Matrix4x4

DrawModelWith(model, transform, matOverride)

Full Usage: DrawModelWith(model, transform, matOverride)

Parameters:
model : Model
transform : Matrix4x4
matOverride : MaterialOverride

DrawSkinnedMesh(mesh, transform, material, bones)

Full Usage: DrawSkinnedMesh(mesh, transform, material, bones)

Parameters:
mesh : Mesh
transform : Matrix4x4
material : Material3D
bones : Matrix4x4[]

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.

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. The pipeline exposes the scene render target's depth attachment (OpenGL's depth buffer is directly sampleable, so no extra geometry pass is needed). Use plain Command3D.PostProcess when an effect doesn't sample depth.

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

Full Usage: this.IsDrawLine3D

Returns: bool
Returns: bool

this.IsDrawMesh

Full Usage: this.IsDrawMesh

Returns: bool
Returns: bool

this.IsDrawMeshInstanced

Full Usage: this.IsDrawMeshInstanced

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

Full Usage: this.IsDrawSkinnedMesh

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.