2D Water Shader in Unity

preview_player
Показать описание
Learn how to create a water refelction effect in Unity

Don't forget to hit that like button and if you'd like to see more gaming goodness then subscribe for more!

Рекомендации по теме
Комментарии
Автор

If someone is having problem with the shader disabling itself after some seconds, that's because the water texture needs to be "Wrap Mode: Repeat", If this is on Clamp, the offset will drag the image offscreen on shader.

maiksonstrife
Автор

I used to code the effect myself, this is just amazing... will definitely give it a go

mmabnoob
Автор

Best water shader tutorial out there, thanks for such a great explanation here. Was able to make a very convincing lightweight shader for mobile android.

slothgameguy
Автор

Thank you Professor James! I'll be watching this as soon as I get done with work today.

GrapeParfait
Автор

for anyone who gets white material instead of reflection after applying the shader, double check you name the texture to "RenderTexture" not main texture or anything else, also if still doesnt work you can use a 3d object quad for water instead of a square, and for the sorting order, change the z value instead, the color or alpha by adding nodes into the shader graph

HT-otpm
Автор

I want exactly that shader effect in Phaser 3. This Video helped me a lot. Thanks for that!

tigerwolf
Автор

Thank you, this was amazing! I can't wait until your next course Sir James.

Nevmang
Автор

Hey James! Always a delight to find your tutorials when searching for something. ”Let’s dive in” haha :)

BlueGooGames
Автор

incredible, thank you very much, of the few tutorials that are explained well step by step and work without any type of error.

khatrix_
Автор

I love your vids so much! Plz never stop

elishashmalo
Автор

Thanks a lot Bro!, porcierto para los que seguimos el tutorial no olvidar que en "la texturadel agua "water" ", en "wrap Mode" debe de ser "Repeat" ... Saludos!

alance
Автор

i didn't understand a shit but getting the water reflection was worth it.

MaMa-phuq
Автор

If anyone has a problem at 8:37 (white material instead of reflection) you probably forgot to save the shader graph (at 7:50).

somnathyadu
Автор

Thanks a bunch for the tutorial, really helped me out on my project!

sketh
Автор

What a great video. I really enjoyed watching

serkanataman
Автор

I don't know what mistake i made but the displacement is not working at all, the reflection is showing tho

JaguarPanda
Автор

Thank you for this great tutorial! Unfortunately, my water sprite only shows the original white square instead of the Material. The shader preview works fine, aswell as the capturing of the camera, but the sprite itself shows only the white square, what am I doing wrong here? I set the Material of the square and the shader is also set.

fidyculous
Автор

Yo, I'm at the point where we apply the water material and can see the distortion on the reflection, however I'm not getting that. I have no idea why. I just get a slightly offset reflection... any help would be greatly appreciated xD

pianokid
Автор

Great Tutorial Bro. Thank you so much.

crabjuice
Автор

I'll watch as soon as I can but I already know that I will use this :) The only question I have is: "is this compatible with 2d lights? Because I seem to recall that such shaders are not really compatible with sprite-lit materials.

I would also like to ask.. is there any chance of you doing a tutorial on "interactable" water? Lije... when the player or anything else jumps in waves are created and such?

I would also love something on combo attacks if possible :)

ilnabbo