What light attenuation function does UDK use?

Posted by ananamas on Game Development See other posts from Game Development or by ananamas
Published on 2013-10-29T13:57:51Z Indexed on 2013/10/29 16:14 UTC
Read the original article Hit count: 336

Filed under:
|
|

I'm a big fan of the light attenuation in UDK. Traditionally I've always used the constant-linear-quadratic falloff function to control how "soft" the falloff is, which gives three values to play with. In UDK you can get similar results, but you only need to tweak one value: FalloffExponent.

taken from the UDK lighting reference

I'm interested in what the actual mathematical function here is. The UDK lighting reference describes it as follows:

FalloffExponent: This allows you to modify the falloff of a light. The default falloff is 2. The smaller the number, the sharper the falloff and the more the brightness is maintained until the radius is reached.

Does anyone know what it's doing behind the scenes?

© Game Development or respective owner

Related posts about hlsl

Related posts about udk