mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-26 20:37:25 +00:00
Try and compute planes based on cheaper meshes to skip more groundcover isntances
This commit is contained in:
parent
3831714f07
commit
5f4e349ea1
@ -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…
x
Reference in New Issue
Block a user