Ejemplo n.º 1
0
 def toggle_hdr(self):
     self.hdr += 1
     if self.hdr > 3: self.hdr = 0
     print("HDR:", self.hdr)
     if self.hdr == 0:
         self.world.clearAttrib(LightRampAttrib.getClassType())
     elif self.hdr == 1:
         self.world.setAttrib(LightRampAttrib.makeHdr0())
     elif self.hdr == 2:
         self.world.setAttrib(LightRampAttrib.makeHdr1())
     elif self.hdr == 3:
         self.world.setAttrib(LightRampAttrib.makeHdr2())