Unity Water Shader Part 1 - Reflection, Refraction and Depth

Unity Water Shader Part 1 - Reflection, Refraction and Depth

帕羅 Paro

1 год назад

15,371 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Irrwahn Grausewitz
Irrwahn Grausewitz - 19.09.2023 02:56

A 1000 thanks for making this. I hate these stupid voice over tutorials and I’m so glad you explain so much in no time at all without giving me a hard time listening! You’re a great teacher. All the other URP water tutorials are a waste of time compared to yours! Love it a lot and hope you will share more of your awesome work in the future! 🥰

Ответить
Tyler Glenn
Tyler Glenn - 09.08.2023 05:04

now the water is dark

Ответить
Tyler Glenn
Tyler Glenn - 09.08.2023 04:27

the depth fade makes the water dissappear, any ideas on how to fix?

Ответить
SavageBabysVROfficial
SavageBabysVROfficial - 04.08.2023 18:52

how do i add the player pls

Ответить
P 134
P 134 - 04.07.2023 11:36

Hi, the reflection was working for mine until I accidentally added cinemachine to the camera of the reflection gameobject. I removed the chinemachine but realised it messed up the orientation and so tried to fix it by redoing the steps.
However the problem i have now, after re-following steps, is that the reflection only shows up in parts of the water plane that is underneath terrain gameobject. Meaning that there is no reflection in the exposed parts of the water where it is meant to reflect, only showing reflection when it is inside the terrain mesh (I clip the camera through the terrain).

Edit: It turns out its not just the reflection, but all the other stuff like the albedo, depth, refraction etc only shows up when camera is between the terrain and water plane
Edit 2: When I double click on the reflection Game Object and then zoom into the water, the effects start to work again! However zooming in starts to slow dramatically to the point where i cant scroll to zoom in anymore or drag the screen. Only able to move with the WASD Keys via fly mode. It seems to only work in the view port as when I press the play and move around using my characters camera, the effects don't show up.

Edit 3: When I "hide" the terrain itself (unticking the box), the water reflection - Everything works as intended. Unhiding brings back the problem..

Ответить
GrizzlyDonnutt
GrizzlyDonnutt - 16.05.2023 10:46

When i go to add the normal map to the meterial theres no were to put it anyone else have the same problem?

Ответить
Rodrigo Viotti
Rodrigo Viotti - 12.05.2023 16:50

Hey, great content. After watching all 3 parts I'm trying to follow the steps but i can't get it right.
I'm atatching the material to a plane but it doesn't get transparent, it continues gray after using the scene color with the screen position. I've tried to use only one solid color it worked, but with the screen position ir gets only gray. My shader is alreasy set as trasnparent. Any idea of what i might do?

Ответить
Wilk
Wilk - 07.05.2023 11:52

I have very odd problem. My water is gray. I can control the shallow water tint by changing albedo RGB value but thats it. Whats even more confusing, water object turns blue when its BELOW terrain. When place on the edge, hidden beneath terrain part of water object is blue as it should, and one that isnt covered by anything, turns gray. It looks like "sun" is bleaching all the color out of it? I have no idea whats going on there. Any help?

Ответить
Thanh Nguyen
Thanh Nguyen - 02.05.2023 21:07

Thanks for sharing this tutorial. I have learned a lot from this. I managed to make a big lake from this. I am having a difficulty when another distortion shader (from refraction effect) rendered on the top the the lake. Both use the screen color note but the does not merge together. DO you have any hint to overcome this? Assuming that I only have basic knowledge about the shader graph, but not the shader "script".

Ответить
Chien Banane
Chien Banane - 01.05.2023 01:34

This is great!

Ответить
mahoromatic02
mahoromatic02 - 19.04.2023 23:36

does this work with HDRP to? because whenever i try to use it my reflections get blown out.

Ответить
Victor Novorski
Victor Novorski - 11.04.2023 12:05

Mobile Friendly shader or no?

Ответить
min yunu
min yunu - 09.04.2023 01:06

Your videos helped me greatly thank you!!

Ответить
Dulal Dey
Dulal Dey - 01.04.2023 03:19

thank you so much

Ответить
SnowballWar
SnowballWar - 22.03.2023 00:04

Have you tried in a closed space scene ? Because when i tried the shader in a tunnel i get the skybox reflection .... the walls and the roof are not taken into account at all.

Ответить
David
David - 20.03.2023 21:28

Damm Thanks Man! very helpful video my brother

Ответить
Den Cesar
Den Cesar - 07.03.2023 22:58

Top! Many thanks!

Ответить
ART emis
ART emis - 28.02.2023 17:08

Thank you for this. Its very pretty and useful. Overall everything works fine except the reflections part, where the reflections dont exactly match with the objects, even though i followed all the steps. I ll try to work around it.

Ответить
Alex Purification
Alex Purification - 19.02.2023 21:44

Reflection part is not working for me☹️

Ответить
Sharat Achary
Sharat Achary - 16.02.2023 14:27

Learned a lot from this. Thank you very much. This is truly gem.

Ответить
Fernando
Fernando - 02.02.2023 01:37

what kind of black magic happened here... congratulations

Ответить
ahmet ömer çiçek
ahmet ömer çiçek - 02.02.2023 01:21

Thank you so much . Please keep go on .

Ответить
Talisman Skulls
Talisman Skulls - 20.01.2023 15:39

Have any examples not using either URP or HDRP?

Ответить
Dombi Bence
Dombi Bence - 09.01.2023 23:50

Quality video of quality content! Congratulations! Please do more like this! :)

Ответить
Lychee
Lychee - 07.01.2023 20:31

Thank you for the tutorial! Its really good^^

Ответить