I have a bit of a problem :
Now, why am I trying to do this :
I was thinking "hey, if I could interpolate texture based on the relative height of the surface textured compared to the height of the object, I could make objects such as trees and rocks dark on their basis and ligh on their tip, only I could use two textures and one shader for every rock and, and make a whole bunch of them looking coherent and unique."
And maybe I'm wrong.
Replies
Don't know how object radius is calculated.
Remember that UDK uses some gamma correction processing which will delinearise your gradients.