0ad/source/simulation2
Ykkrosh b1b96a89d6 Fix culling for shadows and reflections.
Previously we had a single culling frustum based on the main camera, and
any object outside the frustum would never get rendered, even if it
should actually contribute to shadows or reflections/refractions. This
caused ugly pop-in effects in the shadows and reflections while
scrolling.

Extend the renderer to support multiple cull groups, each with a
separate frustum and with separate lists of submitted objects, so that
shadows and reflections will render the correctly culled sets of
objects.

Update the shadow map generation to compute the (hopefully) correct
bounds and matrices for this new scheme.

Include terrain patches in the shadow bounds, so hills can cast shadows
correctly.

Remove the code that tried to render objects slightly outside the camera
frustum in order to reduce the pop-in effect, since that was a
workaround for the lack of a proper fix.

Remove the model/patch filtering code, which was used to cull objects
that were in the normal camera frustum but should be excluded from
reflections/refractions, since that's redundant now too.

Inline DistanceToPlane to save a few hundred usecs per frame inside
CCmpUnitRenderer::RenderSubmit.

Fixes #504, #579.

This was SVN commit r15445.
2014-06-25 01:11:10 +00:00
..
components Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
docs Updates example component documentation 2013-02-26 19:58:51 +00:00
helpers fix compiling problem caused by 8226d75715 2014-01-07 14:37:02 +00:00
scripting Fix units falling off the edge of the world. 2014-06-03 22:35:40 +00:00
serialization Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
system Fix non-PCH build 2014-06-19 23:36:09 +00:00
tests Simplify component deserialization. 2014-06-01 18:14:09 +00:00
MessageTypes.h Fix units falling off the edge of the world. 2014-06-03 22:35:40 +00:00
Simulation2.cpp Add engine support to triggers + a component to provide an easy interface and to be extended by triggers. Thanks to SpahBod for the biggest part of the code, and Yves for the review. 2014-06-23 13:42:59 +00:00
Simulation2.h Removes g_ScriptingHost and implements global to compartment 1 to 1 relation. 2014-01-04 10:14:53 +00:00
TypeList.h Fix units falling off the edge of the world. 2014-06-03 22:35:40 +00:00