mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +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();
|
= cullVisitor.getCurrentCullingSet().getFrustum().getResultMask();
|
||||||
if (resultMask)
|
if (resultMask)
|
||||||
{
|
{
|
||||||
|
// Other objects are likely cheaper and should let us skip all but a few groundcover instances
|
||||||
|
cullVisitor.computeNearPlane();
|
||||||
|
|
||||||
if (dNear < computedZNear)
|
if (dNear < computedZNear)
|
||||||
{
|
{
|
||||||
dNear = computedZNear;
|
dNear = computedZNear;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user