LaurieA opened this issue on Feb 13, 2011 · 1102 posts
bagginsbill posted Tue, 05 April 2011 at 2:16 PM
if lightType in ('sun', 'distant', 'spot'):
wm = light.WorldMatrix()
pto = (0, 0, -1)
pto = dotp(pto, mcol(wm, 0)), dotp(pto, mcol(wm, 1)), dotp(pto, mcol(wm, 2))
if lightType == 'distant':
point_from = mul3(pto, [-1, -1, -1])
lux.point._from = xfm(point_from)
lux.point.to = [0,0,0]
elif lightType == 'sun':
lux.vector.sundir = xfm(mul3(pto, [-1, -1, -1]))
else:
pto = add3(pto, wm[3])
lux.point._from = xfm(point_from)
lux.point.to = xfm(pto)
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)