Index

# Post Processing

Many effects can be achieved via mere post-processing on raw pixel data, without any geometry processing at all. Trial offers a simple interface for such effects, the post-effect-pass and simple-post-effect-pass. A post effect pass is a pass that takes a number of input textures, and outputs a number of output textures, simply running a fragment shader for every output pixel.

The simple version always declares an input port called previous-pass and an output port called color. Using the port texspec you can further customise things such as the resolution of the textures, internal format, etc. See shader passes for more info on that.

Typically you'll then just implement a fragment shader on your class, using the uv input variable, and the color output variable.

Presets

Trial also ships a number of useful preset post processing passes: