mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Remove DirectStart imports from shadows sample
This commit is contained in:
parent
3ad274639d
commit
49fdd56c09
@ -4,7 +4,7 @@ from panda3d.core import *
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import direct.directbase.DirectStart
|
from direct.showbase.ShowBase import ShowBase
|
||||||
from direct.interval.IntervalGlobal import *
|
from direct.interval.IntervalGlobal import *
|
||||||
from direct.gui.DirectGui import OnscreenText
|
from direct.gui.DirectGui import OnscreenText
|
||||||
from direct.showbase.DirectObject import DirectObject
|
from direct.showbase.DirectObject import DirectObject
|
||||||
@ -235,5 +235,7 @@ class World(DirectObject):
|
|||||||
'A/Z: Increase/Decrease the Push-Bias [%F]' % self.pushBias)
|
'A/Z: Increase/Decrease the Push-Bias [%F]' % self.pushBias)
|
||||||
render.setShaderInput('push', self.pushBias)
|
render.setShaderInput('push', self.pushBias)
|
||||||
|
|
||||||
w = World()
|
if __name__ == '__main__':
|
||||||
base.run()
|
base = ShowBase()
|
||||||
|
w = World()
|
||||||
|
base.run()
|
||||||
|
@ -4,7 +4,7 @@ from panda3d.core import *
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import direct.directbase.DirectStart
|
from direct.showbase.ShowBase import ShowBase
|
||||||
from direct.interval.IntervalGlobal import *
|
from direct.interval.IntervalGlobal import *
|
||||||
from direct.gui.DirectGui import OnscreenText
|
from direct.gui.DirectGui import OnscreenText
|
||||||
from direct.showbase.DirectObject import DirectObject
|
from direct.showbase.DirectObject import DirectObject
|
||||||
@ -176,5 +176,7 @@ class World(DirectObject):
|
|||||||
base.win.getGsg().getSupportsDepthTexture() and \
|
base.win.getGsg().getSupportsDepthTexture() and \
|
||||||
base.win.getGsg().getSupportsShadowFilter()
|
base.win.getGsg().getSupportsShadowFilter()
|
||||||
|
|
||||||
w = World()
|
if __name__ == '__main__':
|
||||||
base.run()
|
base = ShowBase()
|
||||||
|
w = World()
|
||||||
|
base.run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user