Interactive Wind Shader for your Foliage (Unity Tutorial)

Поділитися
Вставка
  • Опубліковано 7 сер 2024
  • Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
    Join our Discord Community! - / discord
    In this Unity tutorial, We'll make a wind shader for all your foliage from scratch using Shadergraph, and by the end you'll have lots of tweakable options so you can get it to look just right.
    Then we'll take it a step further by making the foliage interact with our player when he walks past it, taking the player's velocity into account!
    This video was heavily inspired by Code Monkey's awesome Wind Shader video you can find here:
    • Simple Wind Shader Eff...
    This video expands on that one so you can have wind you can interact with (whether it's from your character's velocity, or from a "wind controller" script or anything else you want)
    Link to Download our FREE 2D Asset Pack:
    veilofmaia.com/tutorial-asset...
    ---
    In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: assetstore.unity.com?aid=1100lwgBQ
    ---
    The Free 2D art pack used in this video:
    assetstore.unity.com/packages...
    Contents of This Video: ------------------------------------------
    00:00 - Introduction
    00:25 - Creating the Wind Shader
    07:02 - Fixing every animation looking exactly the same
    07:22 - Improving results by adding more vertices to sprites
    08:37 - Creating our foliage velocity controller
    09:56 - Creating the trigger for our foliage velocity
    Who We Are-------------------------------------
    If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
    Wishlist our Games:
    Wishlist Veil of Maia! - store.steampowered.com/app/19...
    Wishlist Samurado!
    store.steampowered.com/app/23...
    Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
    Follow us on Twitter for regular updates!
    / sasquatchbgames
    #unitytutorial #unity2d #unity3d
  • Ігри

КОМЕНТАРІ • 19

  • @NoTimeLeft_
    @NoTimeLeft_ Рік тому +6

    Great stuff. This is easy to understand but intermediate level of tutorials that is sorely missing from UA-cam.
    Been a fan for a long time and have used multiple tutorials in my indie project im currently developing.
    Keep up the great work

  • @midniteoilsoftware
    @midniteoilsoftware Рік тому +4

    You're so far ahead of me in terms of creating shaders. I'm learning a ton from your videos. Keep it up Brandon!

    • @sasquatchbgames
      @sasquatchbgames  Рік тому +4

      Thanks man! I love shaders and would honestly do nothing but tutorials on those if they performed better. Hope you're feeling well btw!

  • @locnguyen-oj7pc
    @locnguyen-oj7pc 15 днів тому

    Wow, this video is so helpful and you have great skill in using shader. Thank you for making this.

  • @glimpsygames2734
    @glimpsygames2734 Рік тому +1

    Thank you, I was searching for this kind of videos!

  • @conorcoyne1769
    @conorcoyne1769 Рік тому

    Love your vids, can't wait for some more of those "how real comercial games do it"

  • @mehmedcavas3069
    @mehmedcavas3069 Рік тому +1

    wow, this one ise really helpful with good explanation

  • @shawns4354
    @shawns4354 Рік тому

    Nice tutorial!

  • @sealsharp
    @sealsharp Рік тому

    Sweet! Shows the important parts which is how the shader is done and how to set the material/Shader-parameters which creates the external influence.
    I am not a fan of the use of coroutines. Starting those allocates memory and if you just run through those plants at the lower ground, that alone starts 12 coroutines. With some small changes, that could be zero.

  • @dertobbe1176
    @dertobbe1176 4 місяці тому

    This is pretty neat. Any ideas hie to get Player influenze handled in shader graph? There has to be a way to handle the overlay so you can get rid of those nasty triggers

  • @MaximumAxiom
    @MaximumAxiom Рік тому

    I tried to run through it, but the big snag I hit was that the shader looked fine in editor, but moved very statically when I ran the game

  • @bencemervay
    @bencemervay Рік тому

    Hello! Nice video! Pretty useful! My only feedback is regarding the boolean in the shader. It is very inefficient. Try using a combination of step and lerp functions instead.

    • @monkey7218
      @monkey7218 Рік тому

      This sounds interesting - could you elaborate at all by any chance?

    • @bencemervay
      @bencemervay Рік тому

      @@monkey7218 here is a video I made a few months ago in this exact topic: ua-cam.com/video/scMsaT693Kk/v-deo.html
      (In the video descriptions there are links as well that explain the topic even more).

    • @monkey7218
      @monkey7218 Рік тому

      @@bencemervay That's awesome, thanks very much! I'll give it a watch!

  • @EremesNG
    @EremesNG 10 місяців тому

    How this shader could be applied when the sprite is part of an atlas, the effect applies to the entire atlas and the value of YMaskInfluence is very complicated to control ☹
    As long as the sprite is not part of an atlas, everything works perfectly.

  • @lacrime_khalil3032
    @lacrime_khalil3032 4 дні тому

    Actually i have a problem, my gameobjects with the foliage have a paralax effect, why?

  • @Coco-gg5vp
    @Coco-gg5vp Рік тому

    First

  • @earnestmorrison8004
    @earnestmorrison8004 Рік тому

    🤣 Promo-SM