Skip to main content
7 events
when toggle format what by license comment
Nov 3, 2014 at 17:08 comment added Babis None of the two, really :) you can provide in the shader the maximum height and "normalize" the provided height: norm_height = height/max_height; color_from_height( norm_height ); That way you barely do any changes.
Nov 3, 2014 at 17:01 vote accept Zoltantan
Nov 3, 2014 at 17:01 comment added Zoltantan Thanks I got it :) Now I need to rescale my terrain to [0,1] or modify your solution to my range :) What would you prefer?
Nov 3, 2014 at 11:06 history edited Babis CC BY-SA 3.0
added 115 characters in body
Nov 3, 2014 at 11:06 comment added Babis you misunderstood my answer, the height that you need to provide is the "world space height". the screen space height that I used was to visualize the gradient :)
Nov 3, 2014 at 10:01 history edited Babis CC BY-SA 3.0
added 27 characters in body
Nov 3, 2014 at 8:46 history answered Babis CC BY-SA 3.0