# Water Shader Tutorial Help

**URL:** <https://forums.unrealengine.com/t/water-shader-tutorial-help/319033>\
**Category:** World Creation\
**Tags:** Water, unreal-engine, question\
**Created:** [May 18, 2015, 6:58pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033 "2015-05-18T18:58:24Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxDiehard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaxDiehard](https://forums.unrealengine.com/u/MaxDiehard)\
**Post date:** [May 18, 2015, 6:58pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/1 "2015-05-18T18:58:24Z")

</div>

I’ve been following the Water Shader tutorial here from the Wiki,

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

But i’m not sure if if the result is right. I was under the impression that it would create a water material with colour. I’ve followed it exactly and all the nodes are in the right places. The only issue i’m having is that the entire thing is black.

 ![43195-screenshot+2015-05-18+19.57.04.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/8/118f88a8975893636a31682621aba392d9faabf6.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 19, 2015, 2:16pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/2 "2015-05-19T14:16:24Z")

</div>

Hey MaxDiehard,

Have you attempted to apply it to a plane within your scene yet?

If you set it up properly, I would suggest creating a material instance and use the values below to get your desired look and feel. Below is an example of the values I have created for a very blue like pool water.

**Material Instance Values**

 ![43313-poolmatinst.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/e/b8e5fa2389124998c796fd4f2c5cbebe8a808691.png)

**Overall Look**

 ![43311-waterlook.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/7/aa77d3f5cc2f93d454b99c1ec7d84ba75ff0bebc.png)

The reason the your water material is black is because the diffuse is not at a high multiplier by default, so it is essentially clear water. Let me know if you are still having trouble getting your water to render correctly.

Thank you,

---

<div class="post-metadata">

**Author:** ![MaxDiehard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaxDiehard](https://forums.unrealengine.com/u/MaxDiehard)\
**Post date:** [May 20, 2015, 11:08am UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/3 "2015-05-20T11:08:25Z")

</div>

That helped, thanks.

One more thing though, how would I go about making it more opaque?

Something closer to this.

 ![43429-highresscreenshot00003.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/1/97182a36909c9375a74412d9974ab65603e4e25b.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 20, 2015, 1:36pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/4 "2015-05-20T13:36:43Z")

</div>

If you created a material instance then you can change the metallic, refraction, and fresnel parameters. This shader is meant as a translucent water shader, so if you would rather have opaque water then you can download the ‘Water Planes’ samples from the ‘Learn’ tab within the Launcher.

Cheers,

---

<div class="post-metadata">

**Author:** ![Tremor293](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tremor293](https://forums.unrealengine.com/u/Tremor293)\
**Post date:** [May 20, 2015, 8:47pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/5 "2015-05-20T20:47:11Z")

</div>

I am also having trouble with this. This is what Im ending up with:

 ![43501-unreal+water+example+1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/a/36a26a9d77faa6ec749231a9069006eb81121a5c.jpeg)

Im a mega new to this and just trying to get some landscapes going so I could be doing something really dumb but no matter what I do, it just looks broken. I used some of the parameters used to get it less translucent which helped but I cant figure out all the holes.

 ![43502-unreal+water+example+2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/7/2d7ea02fff1de222a8ae6be94b404d01930b0f26.jpeg)

And I dont know if this will help because its so small to read, but here is my version of the blueprint.

 ![43503-unreal+water+example+3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/4/d348af97052802ba34fdbac9827eb66fa7ef47ec.png)

Any insight is massively appreciated

-Noah

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 27, 2015, 2:51pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/6 "2015-05-27T14:51:45Z")

</div>

Hey Tremor,

Instead of copying the values I have set for my water, try changing the Fresnel, Depth Fade, Refraction, and Depth Bias values. Since you have it set up as a material instance you can easily edit the parameters without having to recompile the entire material after each change. If you set up your material correctly, then you will eventually find the correct look. Sometimes it is easier to reset everything to their defaults and work from there.

Let me know if you manage to get it looking correctly or if you need more help.

Cheers,

---

<div class="post-metadata">

**Author:** ![Tremor293](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tremor293](https://forums.unrealengine.com/u/Tremor293)\
**Post date:** [May 27, 2015, 5:49pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/7 "2015-05-27T17:49:53Z")

</div>

Thanks Andrew! After messing with the parameters in the instance like you suggested, I found the fresnel to be really picky and found a happy place that pulled it all together. So it works now and looks pretty good, thanks a bunch!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 28, 2015, 3:23pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/8 "2015-05-28T15:23:03Z")

</div>

My pleasure. That is why I am a fan of material instances because you can quickly edit values while it is updated in realtime to see the changes instantly. Really helps with iteration times and fine tuning materials!

Good luck and let us know if you need any more help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5abde2d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5abde2d1](https://forums.unrealengine.com/u/anonymous_user_5abde2d1)\
**Post date:** [October 2, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/9 "2016-10-02T17:05:27Z")

</div>

Hello, I too have a problem getting the color nodes to have an affect on the shader. No matter what, I get transparent water deleting these nodes also don’t have any effect, in fact disconnecting the entire output from the base color of the material doesn’t produce any effect. I spent about half an hour checking that the nodes are properly connected and they are.  
Controlling it through a material instance also doesn’t make a difference. I’m stuck ☹

Attached are screenshots of the result and my base color setup.

Is this shader not compatible with UE 4.13.1?

 ![109350-clear_water.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/0/800db380eda556b1865c2cb03c533cdc81893df5.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [October 2, 2016, 10:44pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/10 "2016-10-02T22:44:54Z")

</div>

Could you provide me with a screenshot of you Material editor graph?

More specifically I need to see your material’s details panel and the sections of your material graph that deal with opacity and color.

Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5abde2d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5abde2d1](https://forums.unrealengine.com/u/anonymous_user_5abde2d1)\
**Post date:** [October 3, 2016, 1:36am UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/11 "2016-10-03T01:36:57Z")

</div>

Hi Andrew,

Attached are some screenshots and the copy of the actual shader. Thanks a bunch for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [October 3, 2016, 2:49pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/12 "2016-10-03T14:49:42Z")

</div>

Hey fttudo01,

I went through the shader and made some edits as Refraction and Opacity were not being derived correctly since we made changes to both of these behaviors within recent releases. I have put together a test project and attached it with the fixed and modified shader.

I will be sure to update the tutorials with the changes I made so users can continue to utilize the shader. If you have questions or need additional assistance after opening and reviewing the provided test project, let me know and I will do what I can to assist you.

**Water Shader Test Project**

Cheers,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5abde2d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5abde2d1](https://forums.unrealengine.com/u/anonymous_user_5abde2d1)\
**Post date:** [October 4, 2016, 12:10am UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/13 "2016-10-04T00:10:57Z")

</div>

Hi Andrew, thanks a bunch for fixing it, It works properly now!

Thanks,

---

<div class="post-metadata">

**Author:** ![Dobric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dobric](https://forums.unrealengine.com/u/Dobric)\
**Post date:** [April 25, 2017, 10:11pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/14 "2017-04-25T22:11:18Z")

</div>

Hey Andrew, but what should I apply in place where are texture samples in Normals. it compiles error, as I dont have texture in it, its empty, you didnt specify what to put there ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 26, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/15 "2017-04-26T15:57:12Z")

</div>

I need more context as I have no idea what you are referring to. Did you try downloading the test project I provided in my answer, and using that as reference.

I would honestly look at downloading the Water Planes example project from the learn tab. The shaders there are more intuitive and have a lot more controls exposed.

---

<div class="post-metadata">

**Author:** ![Dobric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dobric](https://forums.unrealengine.com/u/Dobric)\
**Post date:** [April 26, 2017, 6:01pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/16 "2017-04-26T18:01:33Z")

</div>

well. the two ripple normal maps are in the project, I couldnt build the shader without them from scratch. They are in the project. I will play with project to see how it works. For now, the ripples go too fast

---

<div class="post-metadata">

**Author:** ![Dobric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dobric](https://forums.unrealengine.com/u/Dobric)\
**Post date:** [April 26, 2017, 6:10pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/17 "2017-04-26T18:10:32Z")

</div>

Any way to change the direction of the waves, they kinda dont go in direction of my river? Changing the angle of the plane doesnt solve it

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [April 26, 2017, 6:53pm UTC](https://forums.unrealengine.com/t/water-shader-tutorial-help/319033/18 "2017-04-26T18:53:33Z")

</div>

Yes, you need to modify the X and Y panning directions.
