material

Distance Fields Shoreline Material

  • Exposure: public
  • UE Version: 4.23

avatar author

hippowombat

April 7, 2020, 6:49 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v
Versions
April 7, 2020
  1. Changed default values to better serve quick drag & drop deployment.

  2. Variable categories & clearing up names

  3. added texture object parameters for noise

  4. Initial

    See

6 comments

  • avatar author

    hippowombat

    April 7, 2020, 6:53 pm

    Note: This requires the Engine Content material function "Distance Field" to be marked as exposed to library. Typically I achieve this by copying the Distance Field function from Engine Content into my own content folder, opening it up, marking it as "expose to library" and then using it in the material above.

    You'll also require some images for the shorelines & noise offset. The shorelines texture can just be a black & white texture with horizontal lines going across, and then the noise texture can be a basic perlin noise.

    Lastly, please make sure your water mesh has, "Affect Distance Field Lighting," under the lighting section in the details panel, set to FALSE.

    Cheers!

  • SADraco

    April 8, 2020, 5:08 am

    hey, there I'm stuck at the part where ya mention:

    This requires the Engine Content material function "Distance Field" to be marked as exposed to library. Typically I achieve this by copying the Distance Field function from Engine Content into my own content folder, opening it up, marking it as "expose to library" and then using it in the material above.

    where do I find this? can you show please how this material function bp looks like?

    Thanks in advance

  • avatar author

    hippowombat

    April 8, 2020, 4:21 pm

    Hey there, here is a quick video that shows how to enable this function:

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

    Cheers!

  • ka2851

    April 8, 2020, 5:32 pm

    Hey hippowombat, this blueprint is amazing but when i put it in my project i end up with a solid white material, I was wondering if you had any ideas as to what i am doing wrong or if i need to change anything in the material details to get this to work?

    I have setup the distance filed function as suggested as well as used appropriate maps and set the affect distance field lighting to false on the water mesh.

    thanks in advance

  • SADraco

    April 9, 2020, 7:59 am

    i dont know what i did wrong but mine is completely black

  • ka2851

    April 9, 2020, 2:49 pm

    SADraco mine started off black as well and after I deleted it and copied it again it turned white