mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
avoid deprecated interface
This commit is contained in:
parent
8841b1d80a
commit
9d40ea1184
@ -67,9 +67,10 @@ def setupMirror(name, width, height):
|
|||||||
# camera to reverse the direction of its face culling. We also
|
# camera to reverse the direction of its face culling. We also
|
||||||
# tell it not to draw (that is, to clip) anything behind the
|
# tell it not to draw (that is, to clip) anything behind the
|
||||||
# mirror plane.
|
# mirror plane.
|
||||||
camera.setInitialState(RenderState.make(
|
dummy = NodePath('dummy')
|
||||||
CullFaceAttrib.makeReverse(),
|
dummy.setAttrib(CullFaceAttrib.makeReverse())
|
||||||
ClipPlaneAttrib.make(ClipPlaneAttrib.OAdd, planeNode)))
|
dummy.setClipPlane(planeNP)
|
||||||
|
camera.setInitialState(dummy.getState())
|
||||||
|
|
||||||
# Create a visible representation of the camera so we can see it.
|
# Create a visible representation of the camera so we can see it.
|
||||||
#cameraVis = loader.loadModel('camera.egg')
|
#cameraVis = loader.loadModel('camera.egg')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user