mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -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
|
||||
# sphere map. We make it first so we can guarantee the
|
||||
# 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.
|
||||
rig = NodePath(namePrefix)
|
||||
@ -1689,7 +1690,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
|
||||
saved = self.screenshot(namePrefix = namePrefix,
|
||||
defaultFilename = defaultFilename,
|
||||
source = toSphere)
|
||||
source = toSphere.getTexture())
|
||||
|
||||
#base.graphicsEngine.removeWindow(buffer)
|
||||
#base.graphicsEngine.removeWindow(toSphere)
|
||||
|
Loading…
x
Reference in New Issue
Block a user