Attenuation...?
by Kevin Johnson · in Technical Issues · 04/02/2005 (9:57 am) · 0 replies
OK i have the lightposition, lightcolor,the pixel pos,the normal (all the key players)
using: Attenuation= (lpos-pixpos * lpos -pixpos)/(lightPadius*lightRadius)
and it ain workig..
Can some one throw me a bone here..
edit
found it.. needed to divide 1 by (lpos-pixpos)2
using: Attenuation= (lpos-pixpos * lpos -pixpos)/(lightPadius*lightRadius)
and it ain workig..
Can some one throw me a bone here..
edit
found it.. needed to divide 1 by (lpos-pixpos)2