Exemplo n.º 1
0
 def makeLampLight(self, lamp):
     col = (255, 255, 255, 350)
     lightNP = CIGlobals.makePointLight(
         'DLlamp', CIGlobals.colorFromRGBScalar255(col),
         lamp.getPos(render) + (0, 0, 9.5), 0.1)
     lamp.setLightOff(1)
     return lightNP
Exemplo n.º 2
0
 def setup(self):
     LightingConfig.setup(self)
     for lightPos in self.lights:
         if len(lightPos) == 2:
             pos = lightPos[0]
             falloff = lightPos[1]
         else:
             pos = lightPos
             falloff = 0.3
         light = CIGlobals.makePointLight('config', self.light, pos,
                                          falloff)
         self.lightNPs.append(light)
         if self.visLights:
             vis = loader.loadModel("models/smiley.egg.pz")
             vis.reparentTo(light)