mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 09:09:43 +00:00
Try and compute planes based on cheaper meshes to skip more groundcover isntances
This commit is contained in:
parent
3831714f07
commit
5f4e349ea1
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,9 @@ namespace MWRender
|
|||
= cullVisitor.getCurrentCullingSet().getFrustum().getResultMask();
|
||||
if (resultMask)
|
||||
{
|
||||
// Other objects are likely cheaper and should let us skip all but a few groundcover instances
|
||||
cullVisitor.computeNearPlane();
|
||||
|
||||
if (dNear < computedZNear)
|
||||
{
|
||||
dNear = computedZNear;
|
||||
|
|
Loading…
Reference in a new issue