wave-harmonic / crest

A class-leading water system implemented in Unity
MIT License
3.4k stars 475 forks source link

Support multiple cameras for Underwater Renderer #1095

Closed daleeidd closed 1 year ago

daleeidd commented 1 year ago

The Underwater Renderer can now support multiple cameras including almost all of its features and optimisations. Exceptions are underwater culling and Surface Self Intersection Fix Mode. It is possible to support these too but would require some re-architecturing of the Ocean Renderer.

The current architecture is not ideal for multiple cameras, but was still possible and so worth doing. A re-architecture will improve things when a breaking change can be made.

Also no longer disable UR if fails validation in edit mode.