Shallow Ocean Shader

EDIT: Download the shader here:

Hey guys, I recently made a cool material I’d like to bring to the show and tell:


Some early screenshots:


So it’s a single material that takes in a heightmap and a Sea Level parameter, and renders out a water part with foam and underwater depth, and a land part with rock and greenery.

It takes advantage of a very cool function in UE4 called BumpOffset which does fake depth adjustment - like what they use for Parallax Bumpmapping. So the dark underwater areas look as if they are deeper than the lighter, shallower areas, when you view it from different angles.

Here is the first version of the Material Blueprint with comments:


If anyone knows an easy way to export out a blueprint, I’ll post the updated version with sea foam and some visual improvements.

Nice work Mikepote, Looks great! :slight_smile:
I would be interested to see how looks in-game as well, do you have any screenshots of it applied to a surface?

Amazing! Can you share the Material?

Nice work, man! :slight_smile:

Fantastic work Mikepote! That Material looks amazing. Keep up the great work

very nice, I’d be interested in seeing how you did it!

yes i would def. love to see the material on one amazing stuff.

Beautiful.

Very cool, would love to see it used ingame.

Nice work Mikepote, Really great!
Would You Please share the final Material With us “For learning Purpose of course” ?

Sure!

Here’s the material as a .T3D file with all the non-standard textures I used, I’m not sure how you can import again after exporting it from the editor though?

And here’s what it looks like in-game:

Thank you for your Kindness , but unfortunately when i import it nothing happens , can you please provide a .uasset files of your materials ? and Thanks Again :slight_smile:

Okay, I’ve updated the zip file to include the .uasset file for the material. The textures you will have to import manually and hook up into the material once it’s imported.

Very cool! Thank you for ! :slight_smile:

That looks **** amazing. Can’t wait to get home and check it out!

Just Right Click in MasterMaterial on Content Browser, choose MIGRATE, and after choose a folder. Without the complete hierarchy we can´t understand where to put the textures.

Yeah me too i can’t figure out how to put the textures and i have problem “Error” :


Please help us :frowning:

Very nice.

If you have already migrated the textures they should stay linked in the node tree, if not you can manually link them by selecting the texture in the content browser then selecting that Texture Sample node in the material node tree then in the left pane (Details) scroll down to Material Expression Texture Base and for the Texture cick the little Left Arrow to use the texture you have selected in the content browser.

Ah okay, you need to put in T_CubeMaps_City01_Envmap from the Elemental demo there.
I’ll try package it up into a zip file using the migration method…