@runevision@mastodon.gamedev.place
Post #2156510
2026-03-30 18:01 UTC
@thomastc I'm glad you found the explanations helpful! :)
About the fade target, you're right that altitude is not robust for the input fade target, since e.g. some valley could be higher up than some mountain peak. I'm not sure there's a perfect solution, and I kind of let it be up to the user to decide what to base the input fade target parameter on. I just base it on altitude in all my demonstrations. 1/?
Replies (1)
-
@runevision@mastodon.gamedev.place 2026-03-30 18:02
@thomastc I did think about using the second derivative (curvature), but then every function involved in producing the input height has to return those second order derivatives, or alternative it has to be done numerically which is either slow (multi-sampling) or rather inaccurate (shader derivatives). 2/?