Esempio n. 1
0
 def setupLights(self):
     # create a point light
     plight = PointLight('plight')
     # set its color
     plight.setColor(VBase4(1.0, 1.0, 1.0, 1))
     # attach the light to the render
     plnp = render.attachNewNode(plight.upcastToPandaNode())
     # set position
     plnp.setPos(0.0, 0.0, 2.0)
     # turn on light
     render.setLight(plnp)