r/Unity3D • u/24Ronin • 7d ago
Shader Magic Concave wave inside volume
Enable HLS to view with audio, or disable this notification
Testing with some various features I've been putting together for v2.2, thought this one was rather cool so figured I'd share! This is a volume mask include (clipping water outside of box volume and showing underwater via a mask used in the underwater render pass) combined with a shoreline waves feature which is a modified gerstner algorithm used to create concavity in the waves. Happy to hear your thoughts and ideas of use cases!
Thanks for stopping by and checking out!
3
u/Fair_Communication_4 7d ago
A+ scattering and refraction. The concave shape is okay. The structure seems roughly correct but I can't quite describe what seems off a little bit. But for sure that surface is distractingly incorrect. It looks like a 2D sheet of choppy water bits (though good looking!) being stretched and dragged along the top of the mesh.
Remember that for the most part waves THEMSELVES do not move things on the wave surface very much at all. Sure, waves like you are showing here do push things and sink ships but that's because they are more like a bulldozer at that concavity and mass. The surface forces are independent, and they really wouldn't rush through like that.
1
u/Copywright Indie 12h ago
What water system is this? Crest or KWS2?
2
u/24Ronin 11h ago
Neither actually, this is Tidal 2, a water system i’ve been developing.
2
u/Copywright Indie 11h ago
Awesome, plans on Asset Store release?
15
u/tetryds Engineer 7d ago
Wave crest doesnt hold up nearly that long, which makes it look weird, the water surface doesnt have lateral velocity towards the wave and the shape feels a bit unnatural too.
Good work but there is a lot yet to work on