how can I obtain fading lights? I mean, all the lights should be gradually fading to 0.
I’m working with a Spotlight and I was wondering if there exist a parameter similar to Blender lights’ “Power” which allows to easily turn lights on/off and set their intensity…
The problem is that I’m quite clueless…I haven’t find posts which treat such issue.
P.S: setExponent(), in this case, seems to have no effect…
exp = #No matter what(0,1,10000) all is the same.... light = Spotlight('slight') lens = PerspectiveLens() light.setLens(lens) lightNP = render.attachNewNode(light) lightNP.setPos(0,0,2) lightNP.lookAt(0,0,0) light.showFrustum() light.setExponent(exp) self.lights.append(lightNP) render.setLight(lightNP)
P.P.S: I’m using simplepbr(not sure if that matters)