Visibility flags patch

Demon Lord

31-03-2009 01:30:55

Hi!

We needed to be able to show water in multiple viewports (a main one, and many smaller ones). Since Hydrax cannot yet be used in such a system, we had to fake some simple water effects on secondary viewports. This was achieved by hiding Hydrax when rendering on those viewports, and hiding our cheaper water meshes when rendering on the Hydrax-enabled one.

We implemented visibility flags and masks similar to the standard Ogre ones to Hydrax, and it seems to work properly.

Patch is in the attached document.