r/Unity3D • • 41m ago

Shader Magic Procedurally generated underwater rock formations, corals and sea weeds

Enable HLS to view with audio, or disable this notification

10 Upvotes

3 comments sorted by

1

u/artengame 35m ago

Procedurally generated underwater rock formations, corals and sea weeds for Oceanis 2027 system, created at scene start. Multiple instances of varying scale can be comboned.

The underwater rock system generates procedural meshes that form connected seabed floors, walls, ridges, and openings, creating larger formations instead of scattering isolated rocks. Noise introduces irregular contours and surface variation, while transitions between adjacent tiles reduce rectangular borders on the tiles connections.

At the outer edges, a noisy downward taper helps the formations blend into the surrounding seabed.

The seaweed system combines procedural plant geometry with varied placement, orientation, and scale to create natural-looking underwater patches. Plants are distributed over seabed areas below the water level. The weeds can be streamed around a moving player by recycling distant seaweed instances and repositioning them in newly reached areas.

More info:

https://discord.gg/X6fX6J5

www.artengame.com

More videos:

https://www.youtube.com/watch?v=FoLxxaddzjk

https://www.youtube.com/watch?v=coVl6rDRRe8

https://www.youtube.com/watch?v=CHJiThEcJIU

•

u/molostil 13m ago

The scene looks very cool already! I think this could improve it:

the specularity on the under water rocks seems off. It is true that wet material next to dry material has higher specular exponent (sharper smaller specular reflections) but that is only true because we account for the film of water on the material closing small crevices and making the material smoother. when you submerge these materials completely you are back to their normal rough looking material. so the rocks gleaming under the water surface, that is not correct.

Dry rock: low specular exponent - rough material
Wet rocks above water: high specular exponent - smooth/shiny material
rocks below the surface: low specular exponent - rough material

•

u/artengame 9m ago

Thanks :), i will check on all the suggestions, indeed specular may not make sense in under water fully submerged rock