oobeCull
This commit is contained in:
parent
effa11bb0f
commit
a7d9badea0
|
|
@ -1150,19 +1150,22 @@ class ShowBase(DirectObject.DirectObject):
|
|||
|
||||
# Assign each DisplayRegion shared by the camera to use
|
||||
# this cull frustum.
|
||||
numDisplayRegions = self.camNode.getNumDisplayRegions()
|
||||
for d in range(0, numDisplayRegions):
|
||||
dr = self.camNode.getDisplayRegion(d)
|
||||
dr.setCullFrustum(pnode)
|
||||
|
||||
# Support for this is currently absent from Panda.
|
||||
## numDisplayRegions = self.camNode.getNumDisplayRegions()
|
||||
## for d in range(0, numDisplayRegions):
|
||||
## dr = self.camNode.getDisplayRegion(d)
|
||||
## dr.setCullFrustum(pnode)
|
||||
else:
|
||||
# Disable OOBE culling.
|
||||
|
||||
# Assign each DisplayRegion shared by the camera to use
|
||||
# the default cull frustum, the camera itself.
|
||||
numDisplayRegions = self.camNode.getNumDisplayRegions()
|
||||
for d in range(0, numDisplayRegions):
|
||||
dr = self.camNode.getDisplayRegion(d)
|
||||
dr.setCullFrustum(self.camNode)
|
||||
|
||||
## numDisplayRegions = self.camNode.getNumDisplayRegions()
|
||||
## for d in range(0, numDisplayRegions):
|
||||
## dr = self.camNode.getDisplayRegion(d)
|
||||
## dr.setCullFrustum(self.camNode)
|
||||
|
||||
self.oobeCullFrustum.removeNode()
|
||||
self.oobeCullFrustum = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue