Okay, here is a short copy&past introduction on how to work with the new stages feature
Take the Lite-C postprocessing codes from the wiki. They should fit for this.
As an example, use the Bloom effekt:
http://www.coniserver.net/wiki/index.php/BloomCreate a new fx-file called Bloom.fx and put the shadercode into it.
Then create a new .c-File and call it PPEs.c and put the Lite-C code from the wiki into it. Include this file into your mainscript: #include "PPEs.c" (make sure, that the files are all at the same folder!).
Now add the following lines to the bottom of PPEs.c:
Code:
VIEW* Bloom_view =
{
material = Bloom_mat;
flags = PROCESS_TARGET;
}
void PPE_Init()
{
camera.stage = Bloom_view;
}
and add PPE_Init(); to your function main.
This should work independent mystymood and the screenresolution.
If you want to combine it with more postprocessingeffects just add an other view with an other name and the other material and set:
Bloom_view.stage = your_new_view;
Make sure that PROCESS_TARGET is set for the new view if you want to use postprocessing. And think about the order (which view is which stage), because it will effect the output if you do first the bloom or first the blur, only slightly but it most probably will
In one case you blur the bloomed image and in the other you bloom the blurred image.
Did I mention that I love the new stages feature?
(Plants and textures by Loopix
)