2D Vegetation Wind Movement Shader Graph - Easy Unity Tutorial

preview_player
Показать описание
In this video you will learn how to create vegetation wind movement shader graph that can be apply to any sprite in your scene in addition to creating simple script to control the wind in your scene.

Music : Lost In The Forest - Background Music No Copyright

Vegetation sprites:

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

Could you do a shader video where you make the leafs move in the direction that the player does when he moves past them? A great example for what I mean is Ori (I've seen other games do this too).

Great video btw. I had been looking for something like this for a while!

ZeldaLore
Автор

It is surprising to see there are only 18k people who have watched this impeccable tutorial.. Great work! Love your tutorials. Subscribed now

nephilmis
Автор

I've encountered a problem with this shader. You can´t move the sprites on the Z axis at all, and I want to be able to do so as I have camera in perspective and not in ortographic. I tried removing the position, split and vector 2 nodes connecting to the tiling and offset, removing the transform, and changing the position from absolute world to object. that worked for a single object, but when you add two with the same material and shader they snap back to 0 on the z axis for some reason. any idea on how to fix this?

ZeldaLore
Автор

thanks for using a sprite whose borders are close to the object, it helped me a lot

sagrgywejhxcvx
Автор

Very helpful guys! With people like you the world is a bit better

kyudogame
Автор

First time I stopped a video so much to be able to follow it. Was my first time modifying shaders. It worked great. Thanks!!

JFCAMPOS
Автор

Excellent tutorial. Well-explained and the effect is perfect. Also love how customizable you made this shader, many other tutorials end up with a similar looking effect, but with no customization in the shader or script. Thank you for sharing and teaching us!

PhilipWalker
Автор

You are ameazing. When i start searchig for something "How make in Unity" - You already uploaded tutorial about that.

xingorro
Автор

As there is no Vector1 anymore i had to use Vector2 in many situations. The main difference is that you have to use another Split after using Power. But you have to do it to make it work.

ballaman
Автор

Really good tutorial, at first I thought it didn't work, but i adjusted some values and now it looks really cool! Well done!

szappy
Автор

This was a really good tutorial. Thanks!

blueforest
Автор

Thanks a lot! I tried to find this shader for a long time, and you helped me to create it

laniakeadev.
Автор

I fixed the problem with the shader where it wouldn't allow you to move the objects on the Z axis.

To fix it, first, I connected the position node (setting it to object) directly to the tiling and offset node, without spliting it. Then, I connected the multiply node directly to the add node near the master, and connected the add node directly to the vertex position, removing the transfom node.

Finally, I set the position node connected to the add node to object.

Now, you can have sprites on a 3D environment and have parallax. Hope this helps someone out :)

Edit: there are still issues with it. Although sprites can me moved on the z axis, some snap the 0 coordinate for some reason. Hmmm

ZeldaLore
Автор

Wowee, this is exactly what I was looking for, thank you so much for making this!

bockhead
Автор

does not work. Even with split, the z value still change and the sprite disappears from time to time...

voidling
Автор

How to make such a visual wind effect?

gaidzin
Автор

I keep getting "Material does not have a _MainTex texture property. It is required for SpriteRenderer." I have followed everything exactly.

westonhall
Автор

I have a question. Why unlit shader graph and not lit?

beri
Автор

Learning a lot from your videos. Thanks so much!

condensedmatter
Автор

hello, can you help me inverse the influence mask so that the sprite stops moving at top and starts at bottom?

lashaghotvadze