Header menu logo Mibo

PostProcessContext3D Type

Context handed to a Command3D.PostProcess action each frame. The pipeline has already rendered the scene to Source and entered the destination render target (a pooled ping-pong RT, or the back-buffer for the last pass). The action resolves its own shader, sets model-derived params, and draws a fullscreen quad of Source.

Record fields

Record Field Description

Context

Full Usage: Context

Field type: GameContext

Game services — e.g. tryGetService<IAssets> to resolve a shader lazily (defers MonoGame-style resolution to first frame, where the device/assets exist).

Field type: GameContext

Depth

Full Usage: Depth

Field type: Texture2D voption

Camera-POV depth (NDC z in [0,1]). Populated only when the view emitted at least one Command3D.PostProcessWithDepth action this frame; otherwise ValueOption. Linearize with the camera's near/far planes to get view-space distance (fog, depth-of-field, SSAO).

Field type: Texture2D voption

Height

Full Usage: Height

Field type: int
Field type: int

Source

Full Usage: Source

Field type: RenderTexture2D

Current ping-pong source (the scene RT on the first pass).

Field type: RenderTexture2D

Time

Full Usage: Time

Field type: float32

Accumulated frame time in seconds, for animated effects.

Field type: float32

Width

Full Usage: Width

Field type: int
Field type: int

Type something to start searching.