-
Notifications
You must be signed in to change notification settings - Fork 27
Postprocessing
thothbot edited this page Oct 20, 2012
·
11 revisions
This is renderer plugin which is used to add additional effects.
To use Post-processing you need do the following steps:
- Plugin initialization in the
AnimatedScene
instance:/* skipped */ @Override protected void onStart() { /* skipped */ Postprocessing composer = new Postprocessing( getRenderer(), getScene() ); }
- Setup RenderPass, which is needed to render current scene in the post-processor :
RenderPass renderModel = new RenderPass( getScene(), camera ); composer.addPass( renderModel );
- Disable auto-cleaning in WebGL renderer:
getRenderer().setAutoClear(false);