Making Glitter in Shader Graph and URP

Everyone loves glitter, but it gets everywhere. Luckily, we can just make a glitter shader instead. In this tutorial, learn how to use random noise colors (i.e. GIMP's Hurl filter) to make a glittery effect!
As a bonus, also learn how to flip the effect on its head to make a starry night shader!
------------
✨ Based on a VERY GOOD UE4 tutorial by Let's Make FX: • Glitter Shader Tutoria...
👇 Download the project on GitHub: github.com/daniel-ilett/glitt...
❓ Want to suggest which topics I cover next? Lete me know here: docs.google.com/forms/d/e/1FA...
------------
🎮 This project uses Unity 2020.3.2f1 and URP 10.4.0, 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 #glitter

Пікірлер: 59

  • @regular-user
    @regular-user3 ай бұрын

    I really love your videos. You are very easy to understand and you try to make us understand the information behind all of it. Sometimes I just copy and paste nodes from tutorials because they just tell you, but don't explain why they are putting the nodes together. You actually explained why and what it will do.

  • @danielilett

    @danielilett

    3 ай бұрын

    I do try and make things as clear as I can so I'm very glad you've learned a lot from my videos :D

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

    Bless your kind soul! Your works are amazing - thank you for this and for your other tutorials as well! 🥰

  • @dasparadoxon
    @dasparadoxon10 ай бұрын

    This is how you make a clear and comprehensive tutorial ! :)

  • @cc95g85
    @cc95g852 жыл бұрын

    Great!!Thanks for the amazing tutorial!!!👏🎊

  • @simon.in.motion
    @simon.in.motion3 ай бұрын

    Thanks a lot for the tutorial, I used it in my game Hoverflow to make the sand glitter :)

  • @nilmour
    @nilmour2 жыл бұрын

    came here from reddit. I'm surprised by the quality of the instructions and in detail information. subscribed for more content.

  • @slightlywetbaby830

    @slightlywetbaby830

    2 жыл бұрын

    This.

  • @nolamo1496

    @nolamo1496

    Жыл бұрын

    THIS GUYS A REDDITOR

  • @nolamo1496

    @nolamo1496

    Жыл бұрын

    THIS GUYS A REDDITOR

  • @fess24
    @fess242 жыл бұрын

    Nice effect! Thank You Friend!

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

    This channel is a certified banger.

  • @SomeBodyThatYouUsedToKnow303
    @SomeBodyThatYouUsedToKnow3032 жыл бұрын

    Thanks man!

  • @bluesheepminecraft
    @bluesheepminecraft11 ай бұрын

    I love your work! Would you ever make an updated version of this for HDRP? I've got the effect working in the material preview but there's no glitter when I apply it to a model in the scene

  • @damianduden
    @damianduden2 жыл бұрын

    this dude is a legend

  • @hide_ch
    @hide_ch11 ай бұрын

    キラキラ出来ました! Hueでノーマライズに変更したら無事に動いてくれました! とても参考になりましたありがとう!

  • @onurgokdemir97
    @onurgokdemir972 ай бұрын

    bro ur best damnnn

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

    This (for me) does NOT work in Unity 2022 (not an LTS). There are a lot of problems from the hue not moving if it's not set to Normalized to the Fresnel not begin added in the end etc. :( guess I'm downgrading to be able to do this.

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

    When you add nodes in a graph, it would be helpful to be zoomed in a little more so we can see the text on each node.

  • @user-lj7ng5od1j
    @user-lj7ng5od1j Жыл бұрын

    Thank you! Is it possible to set the background to transparent and only have the glitter on?

  • @bluesheepminecraft
    @bluesheepminecraft11 ай бұрын

    In case anyone has the issue that I and others had in HDRP where the effect was working in the preview but not the scene, I found a solution. It's a bit of a compromise, but it worked for me and got the effect I wanted with sand glittering as the camera moves by: 1. Simply adding the base colour (or gradient if you still want it) to the final result of everything that was supposed to go into the emissions, and then plugging the result into the base colour fragment at the end. It doesn't get the HDR effect of the sparkles, but it gets white specks behaving as they should. 2. Ensure that the target object you're applying it to is UV unwrapped If anyone knows how to bring back the HDR effect on the glitter let me know

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

    How about Amp,lify shader variant ? I'm planning to have a skybox shader with Stars glitter , Moon texture(adjustable) , Clouds texture

  • @MrBanana12344
    @MrBanana123442 жыл бұрын

    There is a space in the lighting window under the environment tab (I think) where you can put a material in for the skybox so you wouldn't need a sphere to make the night sky.

  • @ultmatepotato

    @ultmatepotato

    2 жыл бұрын

    Yes but if you put this material on a sphere then you can make it rotate with code or the shader itself so your stars will move or you can make the stars blink when the game by multiplying the glitter with a moving gradient noise but the skybox is only a static image (or 6 depending on the skybox material you choose). The possibilitys are ENDLESS!!!

  • @JadenAllen

    @JadenAllen

    5 ай бұрын

    @@ultmatepotato you can do everything you just said using the skybox besides moving it with code. In URP you can use any material as a skybox so if you wanted it to rotate you could just change the materials property with code or have the time node do it for you. Either way works, also when using it as a skybox you cant use the skybox materials since this is a custom shader so its not applying it by a static image or cubemap, its directly applying the custom material as the skybox

  • @JadenAllen

    @JadenAllen

    5 ай бұрын

    just drag the material onto your sky in the editor or in the lighting panel apply the custom material as the skybox

  • @maxiaohuimaxiao
    @maxiaohuimaxiao2 жыл бұрын

    效果太棒了!

  • @WelshGuitarDude
    @WelshGuitarDude2 жыл бұрын

    How might I make a shader that makes certain objects greyscale (any object could be subject to greyscale) without every object using a custom material which is painfully tedious

  • @RoboDK7

    @RoboDK7

    2 жыл бұрын

    should be able to just turn the albedo grayscale

  • @kaylamisstress4774
    @kaylamisstress47742 жыл бұрын

    I have a question! I'm using Unity 2019.4.3 and I'm trying to accomplish this shader! however when I get to the step at 2:44 "add 2 Float properties" I don't seem to have the option in the dropdown. My list starts with Vector 1 and so on. Does anyone have any idea what I can do to be able to add these? (I do have a "Precision: Float" header up next to the Save assets/Show in Project header.) Any ideas?

  • @danielilett

    @danielilett

    2 жыл бұрын

    Good question - Float and Vector 1 properties are the same thing! They just renamed Vector 1 to Float sometime after Unity 2019.4.

  • @kaylamisstress4774

    @kaylamisstress4774

    2 жыл бұрын

    @@danielilett thank you so much!!

  • @danielilett

    @danielilett

    2 жыл бұрын

    No worries! It's quite hard to find information on some of these changes if you're not already aware of them.

  • @GooningGarry
    @GooningGarry11 ай бұрын

    how do you make a material thats a sky?

  • @__dane__
    @__dane__2 жыл бұрын

    I only realized yesterday that view direction is now normalized in URP 11 and above

  • @danielilett

    @danielilett

    2 жыл бұрын

    Ooohhh that's good to know. URP 11 is on Unity 2021.1 right? I've not actually used that version yet so I'll keep that in mind. I'll probably still habitually use a Normalize node anyway.

  • @ultmatepotato

    @ultmatepotato

    2 жыл бұрын

    @@danielilett well if you do consider you are in for a treat. Random errors everywhere, literally endless erorrs, memory leaks and ect!! Isn't that just what we like ^_^

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

    Just turned this into HLSL code and added it to my Kwazy Xhader 3.0 XD, GWITTERS~~~

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

    This is so informative, but for some reason the glitter does not show up on my model, but it shows up on my preview inside Shader Graph. (I clicked Save Asset) The fresnel shows up though, and if I use a glitter offset less than 0, the entire model shows up as the glitter color. Inside Shader Graph, it's kind of of the opposite. If I use a glitter offset greater than 1, no glitter appears, which actually might make sense though.

  • @herpderp3916

    @herpderp3916

    Жыл бұрын

    I'm also having this problem.

  • @exactspace

    @exactspace

    Жыл бұрын

    @@herpderp3916 someone mentioned it could have been a negative number he typed that wasn’t made clear enough.

  • @bluesheepminecraft

    @bluesheepminecraft

    11 ай бұрын

    @@exactspaceSorry, I know this was a while ago but would you happen to know what the solution was? I've tried everything but having the same issue where it shows up in the preview box but not in the scene

  • @cyanos3

    @cyanos3

    10 ай бұрын

    @@bluesheepminecraft For me, the scaling had to be (1,1) by default.

  • @bluesheepminecraft

    @bluesheepminecraft

    10 ай бұрын

    @@cyanos3 I think my issue came down to not UV unwrapping the models I was using. It didn't work on the generic unity sphere which I was using as a test and then failed on my own test meshes, until I UV unwrapped them

  • @SillyBerrryy
    @SillyBerrryy3 ай бұрын

    how do i turn the shader into a unitypackage to use in any unity thing

  • @danielilett

    @danielilett

    3 ай бұрын

    I think you should be able to just right-click the shader in the Project View and click Export Package, right?

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

    To everyone who have a problem with the particle size, Change the Noise Scale.

  • @misterralexander
    @misterralexander8 ай бұрын

    I want the book

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

    For me the glitter doesn't move, the time node seem to don't work

  • @scribbles1440

    @scribbles1440

    Жыл бұрын

    Same!

  • @tilksamousse

    @tilksamousse

    Жыл бұрын

    @@scribbles1440 i found the solution you need to set the hue to normalize

  • @manecube3810

    @manecube3810

    17 күн бұрын

    @@tilksamousse THANK YOU

  • @tilksamousse

    @tilksamousse

    17 күн бұрын

    @@manecube3810 no problem bro

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

    Is anybody else getting the glitter intensity increase the closer the camera is to the object?

  • @isilozcelik

    @isilozcelik

    Жыл бұрын

    same, I had to manually adjust it depending on the size and the distance of the object. I tried making a multiplier based on the distance but couldn't.

  • @hybik
    @hybik2 жыл бұрын

    :D

  • @misterralexander
    @misterralexander5 ай бұрын

    I can't get it to move u.u

  • @misterralexander

    @misterralexander

    5 ай бұрын

    the glitter doesn't sparkles x,x

  • @TheVonWeasel
    @TheVonWeasel2 жыл бұрын

    nobody tell Anakin about this