PostProcessContext3D Type
Context handed to a PostProcess action each frame.
The pipeline has already rendered the scene to Source and set the destination render
target (a pooled ping-pong RT, or the back-buffer for the last pass). The action binds its own
effect, sets model-derived parameters, binds Source to the effect's sampler, and calls
Quad.Draw(effect).
Record fields
| Record Field |
Description
|
|
Game services — e.g.
|
|
Camera-POV depth (NDC z in [0,1], R32F target). 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).
|
|
The graphics device — needed to apply an
|
Full Usage:
Height
Field type: int
|
|
|
Fullscreen quad primitive; call
|
|
Current ping-pong source (the scene RT on the first pass).
|
Full Usage:
Time
Field type: float32
|
Accumulated frame time in seconds, for animated effects.
|
Full Usage:
Width
Field type: int
|
|
Mibo