Home Unreal Engine

UDK LightFunction radius question

HuzZz
polycounter lvl 4
Offline / Send Message
HuzZz polycounter lvl 4
Hello all :)

I am wondering how I can interpolate between a crisp cubemap and a blurry cubemap for a light, dependant on it's distance to any given surface. An exact example of what I want to achieve is here:

[ame="http://www.youtube.com/watch?v=3QyfE1Uy-Ic"]Unreal-Engine-3-E3-Tech-Demo[www.savevid.com]_xvid.mp4 - YouTube[/ame]

I've got the crisp + blurry cubemap set up and I use them in a LightFunction, however I am unable to set up a method of calculating the radius from the light to the surrounding surfaces, in order to use that as the interpolation alpha.

Does anyone have any idea how this is achievable?

Thank you
Sign In or Register to comment.