Home Unreal Engine

Smooth WorldPosition node output

polycounter lvl 12
Offline / Send Message
Lord Fryingpan polycounter lvl 12
I have a bit of a problem :

8O4Do.png

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

  • JamesWild
    Options
    Offline / Send Message
    JamesWild polycounter lvl 8
    Subtract the object world position rather than one minus and add.

    Don't know how object radius is calculated.

    Remember that UDK uses some gamma correction processing which will delinearise your gradients.
Sign In or Register to comment.