How to add camera-view-dependent dark shading near terrain height boundaries?
I am working on a terrain renderer. I generate mesh vertices from a height map. When viewing mountains from the camera, the boundary where the mountain meets the lower ground appears as a very sharp transition. I want to add darkness to the lower ground near this visible height boundary, based on the camera view/screen space, to make the transition look more natural.
This is not about blending different biome/material textures. I am trying to handle the screen-space edge created by the terrain height difference. What is the common way to do this?
Thanks
u/big-jun — 2 days ago