I see that there are already other threads talking about shore foam and so on, but after reading some of them many times i came to the conclusion that i don't understand anything of Terragen
I mean... after the compute terrain, i added a surface shader (A) with white color, maximum altitude 0 and minimum altitude -50. If i use only this shader without water added to the project, i correctly see that the terrain is colored as expected. Say white at altitude 0 degrading to black at altitude -50. Elsewhere black. Fine.
But now i want to use this shader to drive another surface shader (B) in cascade of the water shader, then plug the result into a lake object. The purpose of (B) should be to paint white on the shore masking accordingly to (A) color.
What i get instead is that the lake gets displaced to follow the terrain, because it inherits the displacement coming out of the shader (A).
Moreover, the shader (B) doesn't appear to be driven by (A).
So, in the end, i get the water displaced and not affected by (B). Exactly the opposite of what i'm after.
Any clue? Pliz?