mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
drose: use new api for display region
This commit is contained in:
parent
edf278f712
commit
4407d1e42d
@ -39,8 +39,7 @@ class ShadowCaster:
|
||||
self.tex.setWrapv(Texture.WMBorderColor)
|
||||
|
||||
# Set up a display region on this buffer, and create a camera.
|
||||
layer = self.buffer.getChannel(0).makeLayer()
|
||||
dr = layer.makeDisplayRegion()
|
||||
dr = self.buffer.makeDisplayRegion()
|
||||
self.camera = Camera('shadowCamera')
|
||||
self.cameraPath = self.lightPath.attachNewNode(self.camera)
|
||||
self.camera.setScene(self.objectPath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user