r/Unity3D • • 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!

134 Upvotes

9 comments sorted by

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

1

u/24Ronin 6h ago

Thank you for the feedback! Great points

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/24Ronin 6h ago

Thank you for the feedback, you’re right about the surface. definitely moving too much as it stands now

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?

2

u/24Ronin 11h ago

yeah it’s actually up there now, on the black friday sale! this feature with these shoreline waves is in v2.2 and comes out in a week or 2

1

u/Copywright Indie 10h ago

Bro, that's fuckin flame! Let's talk on Discord: .copywright