Applying filters on viewport level
So far we have discussed applying filters on viewport layers. You can also apply a filter to the entire viewport. This can be done in two ways:
Directly applying a filter to the viewport, resulting in basic filter effects.
Using the
BitmapViewport3Dclass to create a bitmap viewport of the rendered scene and apply filters to the data (pixels) of this bitmap. This allows you to create more advanced filter effects, for instance effects that can be best described as "trails".
For example, a trail is the illusion of vapor or smoke, as demonstrated in the following screenshot. It shows a particle moving upward, leaving a vapor or comet trail behind:

BitmapViewportExample
Directly apply filters to the entire viewport
Applying a filter directly to the entire viewport is easy and goes as follows:
var blur:BlurFilter = new BlurFilter(8,8,BitmapFilterQuality.LOW); viewport.filters = [blur];
The previous two lines of code will blur the whole viewport, so every...