mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -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 os
|
||||
|
||||
import direct.directbase.DirectStart
|
||||
from direct.showbase.ShowBase import ShowBase
|
||||
from direct.interval.IntervalGlobal import *
|
||||
from direct.gui.DirectGui import OnscreenText
|
||||
from direct.showbase.DirectObject import DirectObject
|
||||
@ -235,5 +235,7 @@ class World(DirectObject):
|
||||
'A/Z: Increase/Decrease the Push-Bias [%F]' % self.pushBias)
|
||||
render.setShaderInput('push', self.pushBias)
|
||||
|
||||
w = World()
|
||||
base.run()
|
||||
if __name__ == '__main__':
|
||||
base = ShowBase()
|
||||
w = World()
|
||||
base.run()
|
||||
|
@ -4,7 +4,7 @@ from panda3d.core import *
|
||||
import sys
|
||||
import os
|
||||
|
||||
import direct.directbase.DirectStart
|
||||
from direct.showbase.ShowBase import ShowBase
|
||||
from direct.interval.IntervalGlobal import *
|
||||
from direct.gui.DirectGui import OnscreenText
|
||||
from direct.showbase.DirectObject import DirectObject
|
||||
@ -176,5 +176,7 @@ class World(DirectObject):
|
||||
base.win.getGsg().getSupportsDepthTexture() and \
|
||||
base.win.getGsg().getSupportsShadowFilter()
|
||||
|
||||
w = World()
|
||||
base.run()
|
||||
if __name__ == '__main__':
|
||||
base = ShowBase()
|
||||
w = World()
|
||||
base.run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user