Base class that users can derive from in order to implement custom passes for the compositor.
More...
Base class that users can derive from in order to implement custom passes for the compositor.
- How to implement one: You need to derive three classes:
- CompositorPassProvider
- CompositorPassDef
- CompositorPass
The first one is this class. You need to overload the two public virtuals. i.e. CompositorPassDef* MyProvider::addPassDef( ... ) { return OGRE_NEW MyPassDef( ... ); }
CompositorPass* MyProvider::addPass( ... ) { return OGRE_NEW MyPass( ... ); }
The second and third one are the implementations.
- See also
- CompositorPassScene and
-
CompositorPassSceneDef,
-
CompositorPassQuad and
-
CompositorPassQuadDef,
-
CompositorPassClear and
-
CompositorPassClearDef for examples on how to implement your own pass. For example, you could literally copy the code from CompositorPassClear & CompositorPassClearDef and implement your own custom pass that clears the render target.