Ticket #887 (closed enhancement: wontfix)
[PATCH] Catch terrain patch vertex height for water rendering
|Reported by:||kromxp||Owned by:||philip|
|Priority:||Should Have||Milestone:||Alpha 7|
|Component:||Core engine||Keywords:||patch, review|
The proposed small patch catches the vertex heights of the patches used.
When rendering water if there is not any vertex below water level, the whole patch is skipped. For the patches that are shown, their height levels are cached and faster to access.
It also fixes the // TODO: stop using g_Game
An improvement by using this patch could be to only call the TerrainRenderer::RenderWater if any of the patches has been submitted to be rendered with any vertex below water level.