PostProcessContext2D Type
Context handed to a PostProcess action each frame.
The renderer 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
|
The last active camera during the scene render (
|
|
|
Game services — e.g.
|
|
The graphics device — needed to apply an
|
Full Usage:
Height
Field type: int
|
|
|
The active 2D light context (
|
|
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