How can I colour my terrain using a colour gradient based on the elevation?
This question is rather simple, yet I haven't been able to solve it. I just want to colour my terrain based on its height using an rgb colour gradient. So higher places should be coloured red, lower ones green and even lower ones blue... I blended these colours as seen in the image and I probably have to use the absolute world position and extract the Z- value. Yet i just dont know how to link the colour to the height or even between certain height values.
asked Mar 08 '18 at 05:29 PM in Blueprint Scripting
Here's a way to do it using a 1D texture lookup. You take the Z position, subtract the minimum height, divide it by the height range, clamp it in the range (0,1) and use that as UVs for your texture.
I don't know if
Follow this question
Once you sign in you will be able to subscribe for any updates here