mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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)
|
self.tex.setWrapv(Texture.WMBorderColor)
|
||||||
|
|
||||||
# Set up a display region on this buffer, and create a camera.
|
# Set up a display region on this buffer, and create a camera.
|
||||||
layer = self.buffer.getChannel(0).makeLayer()
|
dr = self.buffer.makeDisplayRegion()
|
||||||
dr = layer.makeDisplayRegion()
|
|
||||||
self.camera = Camera('shadowCamera')
|
self.camera = Camera('shadowCamera')
|
||||||
self.cameraPath = self.lightPath.attachNewNode(self.camera)
|
self.cameraPath = self.lightPath.attachNewNode(self.camera)
|
||||||
self.camera.setScene(self.objectPath)
|
self.camera.setScene(self.objectPath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user