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
BitmapViewport3D
class 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