Snow Layers in Unity Shader Graph and URP

Snow levels are a mainstay in videogame culture. From the infamous 'ice level' in seemingly every platformer, to the more generic Winter setting of other genres, developers aren't shy to slap a bit of frozen rain on the ground. In this tutorial, we're going to use Shader Graph to build a snow effect in which the snow forms piles over time, and we'll also be able to control the direction the snow attaches to objects.
--------------
📜 Read the article version: danielilett.com/2021-03-25-tu...
💻 Check it out on GitHub: github.com/daniel-ilett/shade...
✨ Asset: Survival Old House by Nikolay Federov: assetstore.unity.com/packages... (affiliate link)
✨ Asset: Ground texture: cc0textures.com/view?id=Groun...
--------------
This project uses Unity 2020.2.1f1 and URP 10.2.2, but it should work with other versions.
--------------
📚 Get a copy of my shader book here: www.dpbolvw.net/click-10074214...
✨ Grab Snapshot Shaders Pro here: assetstore.unity.com/packages...
------------
💬 Join the Discord: / discord
💖 Support me on Patreon: www.patreon.com/danielilett?f...
☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
#unity #shaders #tutorial

Пікірлер: 14

  • @danielilett
    @danielilett3 жыл бұрын

    Maybe it would have been better to make this video a couple of months ago when it was still snowing here in the northernmost parts of the world! I love the fact that snow/ice levels have become such staples of videogame culture (alongside 'the fire level', 'the forest level', and so on), so I had a go at making a snow layer effect in Shader Graph. Took a surprising amount of time to tweak it until I was happy with how it looked, but I'm super happy with how the video turned out! I'd love to come back to this and add physical buildup to the snow (i.e. moving the vertices up as the snow settles) and maybe even tracks through the snow where a character walks, but only if this video reaches a lot of people! Thanks for watching! 💜

  • @yeahnope620
    @yeahnope6203 жыл бұрын

    Very happy to have more shader related videos! Keep making content like this. We need LOTS more shader graph related videos. It's a complex subject and in every video we can learn something new.

  • @danielilett

    @danielilett

    3 жыл бұрын

    Thanks! I love making these videos so if they're helping people, that's wonderful :)

  • @ozanyldz445
    @ozanyldz445 Жыл бұрын

    I've been looking for this for a while, thank you very much.

  • @StarCourtesan
    @StarCourtesan3 жыл бұрын

    wonderful!

  • @markgianturco5677
    @markgianturco56772 жыл бұрын

    This seems pretty useful! I noticed the shader applies even to objects that would be completely covered from the snow, is there a way to remove the snow from objects that would not be exposed? maybe a mask or local snow-level value?

  • @superpenguinyt
    @superpenguinyt Жыл бұрын

    Awesome :)

  • @SayyidahHumairah
    @SayyidahHumairah Жыл бұрын

    Hey Daniel, thanks for making this video. It's very useful for me. However, I tried to implement the script to my own mesh but it doesn't work. Do you think there's something to do with the name of materials or anything? Or can you think of any other possible problems? Thank you so much

  • @Jack-429
    @Jack-4293 жыл бұрын

    Nice

  • @Sayan23
    @Sayan237 ай бұрын

    How can we make the material under the snow transparent? Like if the snow was falling on glass or something invisible?

  • @Nature-fw3rc
    @Nature-fw3rc2 жыл бұрын

    How can I make the house without snow inside?

  • @naiyraelkady8204
    @naiyraelkady82047 ай бұрын

    is this shader good performance wise if it's a mobile game??

  • @therandombreakdown4762
    @therandombreakdown47623 жыл бұрын

    Does unity cost money

  • @danielilett

    @danielilett

    3 жыл бұрын

    If you're a small-time creator, nope! It's free if you earn under $100,000 per year. Plus if you're a student, you can get a few other bonuses: store.unity.com/#plans-individual