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

    See
  3. added texture object parameters for noise

    See
  4. Initial

    See

6 comments

  • avatar author

    hippowombat

    Tuesday 7, 2020

    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

    Wednesday 8, 2020

    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

    Wednesday 8, 2020

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

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

    Cheers!

  • ka2851

    Wednesday 8, 2020

    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

    Thursday 9, 2020

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

  • ka2851

    Thursday 9, 2020

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