mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
minor fix to spheremap
This commit is contained in:
parent
283154d07c
commit
92049dce82
@ -1655,7 +1655,8 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
# First, make an offscreen buffer to convert the cube map to a
|
# First, make an offscreen buffer to convert the cube map to a
|
||||||
# sphere map. We make it first so we can guarantee the
|
# sphere map. We make it first so we can guarantee the
|
||||||
# rendering order for the cube map.
|
# rendering order for the cube map.
|
||||||
toSphere = source.makeTextureBuffer(namePrefix, size, size)
|
toSphere = source.makeTextureBuffer(namePrefix, size, size,
|
||||||
|
Texture(), 1)
|
||||||
|
|
||||||
# Now make the cube map buffer.
|
# Now make the cube map buffer.
|
||||||
rig = NodePath(namePrefix)
|
rig = NodePath(namePrefix)
|
||||||
@ -1689,7 +1690,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
|
|
||||||
saved = self.screenshot(namePrefix = namePrefix,
|
saved = self.screenshot(namePrefix = namePrefix,
|
||||||
defaultFilename = defaultFilename,
|
defaultFilename = defaultFilename,
|
||||||
source = toSphere)
|
source = toSphere.getTexture())
|
||||||
|
|
||||||
#base.graphicsEngine.removeWindow(buffer)
|
#base.graphicsEngine.removeWindow(buffer)
|
||||||
#base.graphicsEngine.removeWindow(toSphere)
|
#base.graphicsEngine.removeWindow(toSphere)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user