1
0
Fork 0
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:
AnyOldName3 2023-05-07 23:37:05 +01:00
parent 3831714f07
commit 5f4e349ea1

View file

@ -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;