Maybe this will be something for the file sharing section, but it's not finished yet, I guess.
For my last (tropical) images I tried to create a procedural shore foam preset. I carried on with some stuff that was mentioned here:
https://planetside.co.uk/forums/index.php/topic,28028.msg278689.html#msg278689So far I created three "rows" of foam in real world scale (the cube in the image has the average size of a human). As you can see the setup uses displacement to scalar nodes and some following color adjust shaders, which use the water object's level to create different distances and falloffs to create the foam lines. Additionally I used the "ocean foam texture" setup I shared once in the file sharing section to create the foam patterns. I managed to put all the foam texture nodes into a grouped shader to make it a bit cleaner.
It works with procedural terrains and with loaded ones. So far so good. This setup works nicely with a water level of 1. Of course I could change all parameters of the color adjust shaders by hand, if my water object's level would be different, but that would be rather inconvenient. So, I need some help!
Is there any function or whatever, that I could put somewhere (probably after the displacement to scalar nodes?) to just enter the water level, and that would change the color adjust shaders' values automatically? I guess, they would only have to be shifted up or down, since the relations between the values should stay the same.
So, I hope, someone has a good idea!!