New example about compositor and shader example compositor…







New example about compositor and shader (example.compositor).

The example concerns the definition of a custom compositor. In Ogre3d, a compositor is a serie of post-processing nodes attached to the camera. It is the place where the image displayed at each frame is created.

In the example, there’s a shader attach to the background of the window that renders a blurred circle. The shader params can be modifed RT via the mouse.

  • Moving the mouse change the red and green channels of the center color.
  • Dragging with left button modify the radius of the circle.
  • Dragging with right button modify the center of the circle.
    • Compositor is a really strong feature of Ogre, even if it’s a quite difficult one!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.