Interactive Foliage Shaders for Unity

Поделиться
HTML-код
  • Опубликовано: 1 июн 2024
  • Check out the package:
    github.com/aarthificial/pixel...
    Play the demo:
    aarthificial.itch.io/pixelgra...
    Source code:
    github.com/aarthificial/pixel...
    Consider supporting the channel on Patreon 🖤
    / aarthificial
    Timestamps:
    0:00 Intro
    0:38 Package overview
    2:06 Customization
    3:00 Trade offer

Комментарии • 212

  • @aarthificial
    @aarthificial  2 года назад +72

    You can now support this channel on Patreon!
    patreon.com/aarthificial
    You don't have to tho. I'll love you anyway 🖤

    • @ven6815
      @ven6815 2 года назад +7

      17 hours in and already at 86$
      congrats, you broke the record

    • @Madman5465
      @Madman5465 2 года назад +2

      Would give, but dont really have the money for it atm. But hopefully will later!

  • @vikara
    @vikara 2 года назад +53

    >Makes top quality videos for over a year, each of which can send you down hours long research rabbit holes
    >"Ive decided to become a sellout"
    The fact that you reached your initial goal within 2 hours of opening the damn thing is not a surprise

  • @rub5704
    @rub5704 10 месяцев назад +18

    Thank you aarthificial for this great shader.
    The Shader works perfectly fine in Unity 2021, but for those of you trying to use the Shader in Unity 2022 you will find 2 errors. I will explain you how to fix them in a detail way.
    The first error is:
    "You can only call cameraColorTarget inside the scope of a ScriptableRenderPass. Otherwise the pipeline camera target texture might have not been created or might have already been disposed."
    This error happens in line 47 of the VelocityRenderFeature Class. To resolve it, you need to comment out the line of code in the VelocityRenderFeature Class (line 47 for me), override the SetupRenderPasses function, and then add the line in the new format as shown below:
    public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
    {
    //_pass.ConfigureTarget(renderer.cameraColorTarget); //COMMENT THIS LINE OF CODE
    _pass.Setup(settings, simulation);
    renderer.EnqueuePass(_pass);
    }
    //ADD THIS OVERRIDE FUNCTION
    public override void SetupRenderPasses(ScriptableRenderer renderer, in RenderingData renderingData)
    {
    _pass.ConfigureTarget(renderer.cameraColorTargetHandle); //ADD THIS LINE OF CODE
    }
    The second error is:
    'Hidden/PixelGraphics/Velocity/Blit': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/Shaders/Utils/Fullscreen.hlsl'
    This error was mentioned in the comments below. This happens because Unity 2022 no longer has the fullscreen.hlsl shader in the given path.
    What I did was to open a project using Unity 2021, then I went to the given path:
    'Packages/com.unity.render-pipelines.universal/Shaders/Utils/Fullscreen.hlsl',
    then I copy the Fullscreen.hlsl shader from the Package folder to the Asset folder and export it as a Package.
    In Unity 2022, you need to import the custom package, and in the Blit Shader, you have to replace
    //#include "Packages/com.unity.render-pipelines.universal/Shaders/Utils/Fullscreen.hlsl"
    With the new location where you place the fullscreen shader:
    #include "Packages/com.luvagames.fullscreenshader/Runtime/Shaders/Fullscreen.hlsl"

    • @dbhlnn
      @dbhlnn 4 месяца назад

      unfortunately there are plenty more errors and even after some extra bugfix spree I couldn't get it to work neatly

  • @smashr6107
    @smashr6107 2 года назад +122

    Oh my god your quality of videos is amazing, hope this channel receives the attention it deserves. Keep up the good work my man!

  • @alexanderosinubi5154
    @alexanderosinubi5154 2 года назад +47

    You are a very special game developer. A kind I haven't seen before. One that implements ideas and creativity perfectly into an art piece. When I found your channel, I watched through every video you made, and enjoyed and learned from all of them. For that, I thank you. Please continue to inspire and teach many others, and don't give up!
    -Alex

    • @aarthificial
      @aarthificial  2 года назад +4

      Thank you so much, it means the world to me!

  • @Tomatech
    @Tomatech 2 года назад +67

    It would be cool if patrons got early access to buggy/unfinished versions of upcoming systems, like the save system or the next-gen pixel perfect renderer

  • @Watzefuk1192
    @Watzefuk1192 2 года назад +9

    ADDING THIS TO MY GAME!! you're a life saver, the current method i was using is much more expensive! thanks!!

  • @alexmat1085
    @alexmat1085 2 года назад

    man, just looking through all your past content, I have to say, your vids have amazing quality and are super cool

  • @noctuh.
    @noctuh. 2 года назад

    Can't believe I JUST now found your channel so many great insights

  • @artinacart8035
    @artinacart8035 2 года назад

    Awesome work!
    Your coding heavy stuff really motivates me to get better at coding myself

  • @aarondcmedia9585
    @aarondcmedia9585 2 года назад

    The clouds in the background look professional. Good work.

  • @willmanjm
    @willmanjm 2 года назад

    As always, amazing video and ideas! I really enjoy the look and feel of Astortion. Can't wait!

  • @erikahlundhelguera
    @erikahlundhelguera 2 года назад

    Holly you finally made it! Thank you so much for sharing the code! Gotta join the patreon now

  • @viniciusrosa8215
    @viniciusrosa8215 2 года назад

    Thx a lot for sharing. Its hard to find people willing to share how they did something of this level of difficulty for free. Great work!

  • @clarisrichter7966
    @clarisrichter7966 2 месяца назад

    The fact that you made this free for everyone is just amazing. Thank you!

  • @bilel114
    @bilel114 2 года назад

    Wow that is very generous of you!
    Im sure you'll smash your goal in patreon. Great work as always.

  • @DolphinDev
    @DolphinDev 2 года назад

    The shader and the outcome look super at the end! Awesome stuff

  • @NikkoLeawe
    @NikkoLeawe 3 месяца назад

    it is such an amazing video! Many creative and useful ideas here

  • @sean8262
    @sean8262 2 года назад +4

    You’re a legend, my friend

  • @literallyretarded2286
    @literallyretarded2286 2 года назад

    I love you content man, thanks for sharing this ❤️

  • @chris.davidoff
    @chris.davidoff 2 года назад

    WHAT! This is incredible, THANK YOU!!!! I can't wait to dig into learning how you this was made.
    Patreon subbed!

  • @RugbugRedfern
    @RugbugRedfern 2 года назад +3

    Very cool! Thanks for sharing

  • @svendpai
    @svendpai 2 года назад

    stunning content as always!

  • @nodenamea4798
    @nodenamea4798 2 года назад

    Keep up the best work on the platform!

  • @DArK-xj8lr
    @DArK-xj8lr 2 года назад

    That pixel art looks beautiful

  • @krycerkris
    @krycerkris 2 года назад +3

    Yoo first time catching an upload early!

    • @krycerkris
      @krycerkris 2 года назад

      I really love your content! Clean, simple and it really fills me with a sense of wonder to see the projects of others slowly evolving!

    • @aarthificial
      @aarthificial  2 года назад

      Glad to hear that!

  • @ruzco4873
    @ruzco4873 2 года назад

    You're incredible, love your work!

  • @Ezzataii
    @Ezzataii 2 года назад +4

    This looks fantastic! I'm also curious if you'll ever make a package for your custom renderer because that looks great too.

    • @aarthificial
      @aarthificial  2 года назад +1

      Thanks!
      I'm planning to do so but it will probably take a while

  • @leodesaintsalvy6948
    @leodesaintsalvy6948 2 года назад

    You are an absolute legend. This is a godsend

  • @leonardodenni1562
    @leonardodenni1562 2 года назад

    I really know nothing about the behind the scenes of the creation of games (and tbh it's not my cup of tea) but mate let me tell you, you manage to keep me watching the. video..good job

  • @AtariKafa
    @AtariKafa 2 года назад +8

    i will try to implement this on my 3D game
    lets see if i can figure it out 🤗

  • @rhethoricalQ
    @rhethoricalQ 2 года назад +4

    Can't really donate as i don't have the funds but I saw the patreon, congrats on making the channel self sustaining!!

  • @commonhousehuman
    @commonhousehuman 2 года назад

    Nice video, will continue watching

  • @Willendes
    @Willendes 2 года назад

    You're amazing friend. Greetings from Brazil

  • @Tober_
    @Tober_ 2 года назад +1

    When I see a great video like this one, it just makes me happy, but on the other hand, I'm sad because it doesn't get the attention it deserves.
    Anyway, keep up the great work.

  • @_.nati.b
    @_.nati.b 2 года назад

    You made my life easier, Thanks!

  • @deepskyventure8078
    @deepskyventure8078 2 года назад

    This video helped me so much

  • @alpagogoktenay9827
    @alpagogoktenay9827 2 года назад

    RUclips algorithm is the best, very cool person and channel. How long you have been coding can i ask? I have mad respect to your skills. I will be looking forward to your future content.

    • @aarthificial
      @aarthificial  2 года назад +1

      Thanks so much!
      It would be around 7 years now, 3 years professionally, not in Unity though.
      My experience with Unity started when I started this channel (~1 year)

  • @VuVuuInc
    @VuVuuInc 2 года назад

    lit, ima have to yoink that, also that whole running the channel at a loss is a familiar feeling. :(

  • @ikizlerlebirgun7119
    @ikizlerlebirgun7119 2 года назад +9

    Looking forward to see Astortion!

  • @loekTheDreamer
    @loekTheDreamer 2 года назад

    you are a rock star! thanks for the share.

  • @MurmelMannen
    @MurmelMannen 2 года назад +1

    ANOOTHER VIDEO LESSS GOOOOOOO

  • @rakshasharma6656
    @rakshasharma6656 2 года назад +2

    You should check out a game Machinarium, and make a dystopian world like that, it looks amazing.

  • @cunibon4395
    @cunibon4395 Год назад +1

    I love this man

  • @piousthepious
    @piousthepious 2 года назад

    Bro lmfao you’re absolutely amazing

  • @MrJouwi
    @MrJouwi 11 месяцев назад

    thank you, i would never be able to do this on my own🤗

  • @yukunxia2312
    @yukunxia2312 Год назад

    You are my hero!

  • @revo4613
    @revo4613 2 года назад

    So amazing!!!

  • @iondarii7621
    @iondarii7621 2 года назад +1

    Thank you, very nice.
    I found that it doesn't sway if the camera is in perspective mode and follows the player, and works if static. When camera is orthographic all is good. Do you know why that happens? Thank you!

  • @TylerGreen
    @TylerGreen 2 года назад

    This was very cool

  • @A_Peachy
    @A_Peachy 2 года назад

    I don't completely understand, but the effect is very beautiful!

  • @simoneparisi_
    @simoneparisi_ 2 года назад

    You are so inspiring

  • @jumi6051
    @jumi6051 2 года назад

    Wow... the shader looks amazing! If u don't mind me asking, how long have u been doing programming?

    • @aarthificial
      @aarthificial  2 года назад

      Thanks!
      ~7 years in total, one year in unity/c#

    • @jumi6051
      @jumi6051 2 года назад

      @@aarthificial Awesome. Which language were u using before that?

    • @aarthificial
      @aarthificial  2 года назад

      I played around with C#, C++ and Java for a few years, then I settled on TypeScript which I do for a living to this day

  • @blueyay
    @blueyay 2 года назад +1

    Well I can't afford to support you on patreon, yet. But I definitely can leave a comment for the algorithm uwu

  • @wrenapplecider9800
    @wrenapplecider9800 2 года назад

    yess goodluck!!

  • @thanhlongtran9163
    @thanhlongtran9163 2 года назад

    Just a quick question: I'm making a fullscreen shader effect using renderer features for the forward renderer data. But I'm also using the 2D renderer data for 2D lights and stuff. I see that you also have the same problem and solve it by using the VelocityCamera. Can you explain to me your solution?

  • @user-gz4vf9hm1b
    @user-gz4vf9hm1b 11 месяцев назад

    if your guys found it don`t work ,can try change object named "Velocity Emitter" porperties "Mode" be come "Translation" but not rigidBody2D and i still dont know why , but after i changed the type of "Mode" it become useful : )

  • @NishanGhoshgameshamelame
    @NishanGhoshgameshamelame 2 года назад

    Bro you made it! No words can define you - an out of bounds index.
    So this Velocity Emitter could be applied to multiple objects for multiple object interaction?

    • @aarthificial
      @aarthificial  2 года назад

      Thanks!
      Yes, you can have multiple emitters

  • @ZiplawDev
    @ZiplawDev 2 года назад

    you're brilliant

  • @TheWesleykid
    @TheWesleykid 2 года назад

    Hi! I tried to add it to my project, but it seems like it does not work with Cinemachine VCams. I added a velocity camera component to the Main Camera, which also has a cinemachine brain, it kinda works, but the buffer is behaving weirdly (sway for first few grass GO, but doesn't for others). I tried it with the cinemachine brain off and it works flawlessly. Nevertheless, this is a really awesome shader package!

  • @omegaomega6838
    @omegaomega6838 Год назад +1

    It seems that my problem wasn't actually the camera moving, but for some reason the shader that gives the velocity seems to be making everything yellow. I got you demo and tried it out. On your demo it doesn't seem to me that when I put the debug shader on that everything is yellow except the emitter. Is there any solution to this. I can't figure out the difference. What is causing my shader to be all yellow except for the emitter.

  • @BlueGooGames
    @BlueGooGames 2 года назад

    This is briliant! Does it support also URP? Would look awesome in our game, thanks so much for sharing everything!

    • @aarthificial
      @aarthificial  2 года назад

      Thanks!
      Yes, it should support any scriptable pipeline, including URP.
      The demo, for instance, uses URP with a 2D Renderer

  • @aaalbeert
    @aaalbeert 2 года назад

    Sick 👌

  • @ibra.h
    @ibra.h 2 года назад +10

    What about a Patreon-only discord as a perk? kinda like how channels like GMTK do it

    • @aarthificial
      @aarthificial  2 года назад +3

      Interesting idea! I'll look into that

    • @phendan
      @phendan 2 года назад +1

      Was just looking to see if anyone else has commented this already. Definitely seconded!

  • @goldfish0709
    @goldfish0709 2 года назад

    So I fixed the black grass problem. Now I have to figure out how to make the body and branches of a tree stay completely still while the foliage move. I paint the body and branch black but it still moving, did I do something wrong?

  • @TheStigChristensen
    @TheStigChristensen 9 месяцев назад +1

    Thank you for sharing, much appreciated! I think there''s an issue with the pixelart_shader, I can not get it working smoothly with 8 ppi and no upscaling. If I try it in your demo scene, I get the same error, the bush get's distorted like crazy.

    • @dmon9333
      @dmon9333 2 месяца назад

      did u manage to get it working?

  • @Chief-wx1fj
    @Chief-wx1fj 2 года назад

    Is it possible to make this work with the Perspective Camera? only seems to work with the Ortographic for now

  • @omegaomega6838
    @omegaomega6838 Год назад +1

    Is there anyway to make this work in a perspective projection. I've managed to make it all work, I just can seem to make the camera move with the player and show the velocity correctly because it's in a 3D space. if anyone has an answer to this feel free to share your thoughts. I don't even know where to begin to calculate the math for this.

  • @psyantologist
    @psyantologist 2 года назад +1

    Wonderful work =]
    I'm trying to follow along yet I'm confused by the demo project - it throws aplenty warnings about missing audio and all sprite PNGs are invalid files, 128 bytes in size, smaller than their meta information

    • @aarthificial
      @aarthificial  2 года назад

      Thanks!
      To quote the README file:
      "This repo uses Git Large File Storage to store image assets.
      If you want to clone the repo, make sure that you have lfs installed on your machine.
      Otherwise the sprites may be missing."
      You would need to clone the repo using git with lfs: git-lfs.github.com/

    • @prodjectz1866
      @prodjectz1866 2 года назад

      @@aarthificial thanks:3

  • @tommckenzie
    @tommckenzie 2 года назад

    Awesome! Is there any chance you might do something similar with your fog shader?

    • @aarthificial
      @aarthificial  2 года назад

      Thanks!
      That's the plan. It's called "PixelGraphics" cuz I'll be adding more pixel art shaders to it over time.
      Like the fog, or the line shader

  • @keratinor
    @keratinor 2 года назад +1

    Hello I have a question. I don't know if it's me but it looks like your grass deosn't move at the base. But when I try this on a random foliage, all the sprite wave. Is there a way to keep the base steadi with your shader? Great job, i've been looking for this kind of video for a while!!!

    • @aarthificial
      @aarthificial  2 года назад +2

      It's done using a displacement mask:
      github.com/aarthificial/pixelgraphics/blob/master/Documentation~/shaders.md#displacement-mask
      In this case it's a gradient - from black at the base to white at the top:
      github.com/aarthificial/pixelgraphics-demo/blob/master/Assets/Terrain/Sprites/plants_displacement.png

    • @keratinor
      @keratinor 2 года назад

      @@aarthificial Thank you !!!! That was a fast answer ^^

    • @BlacksmithYT
      @BlacksmithYT 2 года назад

      @@aarthificial Hey this is the problem I'm having right now. I do not have _DisplacementMask popping up at the secondary textures. How do I get it to be an option? Thanks!

  • @omegaomega6838
    @omegaomega6838 Год назад

    I've been trying figure out why the package just didn't seem to work for me and then I used the velocity debugger and realized that everything was messed up because the velocity doesn't really show correctly when the camera moves with the player. Is there anyway to make this work while the camera is moving with the player?

  • @shadowofcat
    @shadowofcat Год назад

    i've installed the package in my unity project and it seems to work fine with a static camera but it stops working when the camera is moving it jitters and moves when the player is not near the object. i hope i can find a solution for this. anyways thanks for the cool package and i will playtest this for potential fixes.

  • @midewy4311
    @midewy4311 Год назад

    Hi There!
    When I apply the shader to the sprites, I see them on the scene and game view, but when hit the play button the sprites with that material disappear.
    Could someone help me please?

  • @sinus4784
    @sinus4784 2 года назад +1

    this is really cool
    i wanna try to port this to godot but i'm not great at shaders or untiy

  • @uhhmir
    @uhhmir 2 года назад +2

    How did you know what's the correct pixel size to make it pixel-perfect?

    • @aarthificial
      @aarthificial  2 года назад +3

      There's a "Pixels Per Unit" setting:
      github.com/aarthificial/pixelgraphics/blob/master/Documentation~/velocity.md#pixels-per-unit

    • @uhhmir
      @uhhmir 2 года назад

      @@aarthificial thanks! the shader looks so good

  • @chayan3789
    @chayan3789 2 года назад

    In my case when installing the package on unity 2020.1 it says 'GraphicsDeviceType' doesnot have a defination of 'PlayStaion5'. What should I do?

  • @BlacksmithYT
    @BlacksmithYT 2 года назад

    Hey I replied to one of the comments in here, but I do not know if it shows up for you or not.
    This is absolutely amazing, it works wonders, but I have one thing I can not fix: The bottom of my grass sprites are also swaying. I know that a _DisplacementMask is needed, but it is not showing up for me in the secondary texture editor. Why is that? Is there a way to fix it?
    Thank you in advance, and keep rocking the awesome videos!
    Update: nevermind, I am just very new to Unity, I did not know that I just had to write _DisplacementMask in the name field. I got it. Works like a charm.

  • @simonkotze8282
    @simonkotze8282 2 года назад

    Hay man this Video is awesome, I tried putting it in my scene and everything works perfectly! the only thing that I couldn't figure out was how to get the grass to only sway at the top, I am using the grass_shader but it doesn't quite look or move the way yours does? Thanks for the video!

    • @aarthificial
      @aarthificial  2 года назад +1

      You need to use a displacement mask to limit which part of the grass you want to sway. In this example it's a simple gradient - black at the bottom, white at the top
      Here's more info:
      github.com/aarthificial/pixelgraphics/blob/master/Documentation~/shaders.md#displacement-mask

  • @bryanfernandodinata9506
    @bryanfernandodinata9506 2 года назад

    Why when i use the pixel art grass shader my spirte got transparant and i cant see it

  • @Louis-fh4sh
    @Louis-fh4sh 2 года назад +1

    "Nothing special here", he says, as the *best running animation ever* plays on camera
    Thanks for sharing the code :D

  • @wiiasd3682
    @wiiasd3682 2 года назад

    I am definitely going to pay for a set of tutorials on how to make this shader lol

  • @wilykary
    @wilykary 2 года назад

    Just wondering, what code editor and theme + font are you using?

  • @shawnlou3210
    @shawnlou3210 2 года назад

    Awesome

  • @aleksandrkovach7438
    @aleksandrkovach7438 2 года назад

    Прикольно
    А как сделать платформы, которые меняются при соприкосновении? Как в трейлере силксонга

  • @viniciusrosa8215
    @viniciusrosa8215 2 года назад

    Hey, is there any means to send you a bug report with screenshoots and info on what it might be? I found a small problem when testing it, And it would be easier to send you somewhere specific then trying to type it in a comment. And once again, thx for sharing this amazing shader.

    • @aarthificial
      @aarthificial  2 года назад

      Hi! It would be best if you could create an issue on github:
      github.com/aarthificial/pixelgraphics/issues

  • @botansahin
    @botansahin Год назад

    I downloaded the demo, and tried it on macbook, but velocity emitter doesn't have any effect. Do you have any idea why? Also package doesn't import from url, I imported manually

  • @HeavyMix3
    @HeavyMix3 Год назад

    Is there a way to make this work using the Built In render pipeline ?

  • @Sewermouse
    @Sewermouse 2 года назад

    Hey! I am working with this one and it seems the Pixelated shaders don't work for me? They basically make any sprite with them on look like there's 'scanlines' on them every once in a while instead of... pixelating... the whole image. Any idea what might be the cause of that? Using UNity 2020.3.14f1 and URP!

    • @aarthificial
      @aarthificial  2 года назад

      Hi! I'm not sure if you've removed your previous comment but I can't view it anymore.
      Could you create an issue here: github.com/aarthificial/pixelgraphics/issues ?
      Ideally, with some screenshots of these scanlines and of your Velocity Camera / Render Feature configuration

    • @Sewermouse
      @Sewermouse 2 года назад

      ​@@aarthificial My previous comment reply got deleted so to avoid confusion to others I removed the initial comment as well!
      I'll check it out!
      Is there any difference to setting up the pixelation to how the 'normal' shader works?
      Alternatively- is there a way of managing pixelation 'layers' in URP to pixelate specific layers of objects? Like a pixelation shader that takes a PPU that you can then apply to a (sorting) layer globally? If ANYONE on RUclips could give me a solid answer on that it'd be you!

  • @orangelimesky
    @orangelimesky 2 года назад

    Does this work with Cinemachine 2D ? After configuring the velocity camera onto the Main Camera the foliage disappears from the game window on Play.

    • @aarthificial
      @aarthificial  2 года назад

      I tested it just now and seems to work correctly.
      Does it work for you without cinemachine? Perhaps something else is a problem

    • @orangelimesky
      @orangelimesky 2 года назад

      @@aarthificial it wasn't working with the velocity camera component from your package but I just used the forward renderer and it worked as now they support the layer masks so no need for the custom velocity camera component anymore! I'm using the latest unity version

  • @gavenhollenbeck4630
    @gavenhollenbeck4630 2 года назад

    how do i down load it, its in my project as a folder but it doesnt do any thing

  • @forestgamez7824
    @forestgamez7824 Год назад +1

    I've tried importing using git link, but it always fails, is there any other way to import it into my project?

  • @joshuabidwell2614
    @joshuabidwell2614 2 года назад

    I would pay for this package if you could do a perspective version. Also, even with an ortho camera I can't get the renderer feature to work with 2021.2 URP. The camera works in ortho and persp but obviously has very strange movement in persp

    • @Chief-wx1fj
      @Chief-wx1fj 2 года назад

      I would pay for a perspective version too. Please make this possible

  • @leodesaintsalvy6948
    @leodesaintsalvy6948 2 года назад

    Is there a place to get some help for setting this up? I'm having trouble getting the grass_pixelart_shader to display...
    Edit: Updating Unity version to 2020 and using the 2D pipeline renderer has seemed to fix the problem

    • @aarthificial
      @aarthificial  2 года назад

      Unfortunately, I tested it using 2020.2
      What version were you using before updating? I'll check it later, maybe there's some easy fix

    • @thegaijin3753
      @thegaijin3753 2 года назад

      @@aarthificial hey there. sorry to bother but im trying to get it to work in my project right now and got some problems and i dont really know where to ask... i have a pixel art game and wanted to use the pixel art grass shader but its invisible. it seems to work in the preview window but ingame the sprite is either gone or just some middle alpha grey lines are visible. im using the 2021.2 beta version and URP. the normal one (non pixel art version) works though
      edit: seems its starting to work now. i exposed the pixel params property of the shader and then it appeared. after some more testing it seems that the parent object having a non null vector position was responsible for this. unexposing the parameters has weird effects though. i think he gets the values wrong or something. like i can see how the effect is only visible in a round area where it looks like someone goes over it with a magnifying glass and only in there is the effect. and i still cant get the displacement / emitter stuff to work.
      i also tried the renderer mode and its preview feature but it doesnt change anything when turning it on and the emitter circle is always visible, no matter what layer mask or rendering layer im using

    • @leodesaintsalvy6948
      @leodesaintsalvy6948 2 года назад

      @@aarthificial I have no idea why I didn't receive a notification for your reply, but here I am rewatching the video a year later and feeling guilty for not answering.
      Sorry about that
      (Btw, it was 2019.4.0f1 I think but it doesn't matter at all, I've long since updated)

  • @zaraiba
    @zaraiba 10 месяцев назад

    Hey, I tried to download this Shaders, but every time I put the Material in Sprite Renderer, it leaves the object purple and does not work, how can I solve this?

  • @alek3tt
    @alek3tt 2 года назад

    Is there any way to turn off the effect in editor?

  • @eliaslamsa6541
    @eliaslamsa6541 2 года назад

    I want to use this but I can't seem to get it to work right. everything else works but the velocity is weird. I have a emitter on the player and it seems to only work vertical. the foliage wont move at all when walking but when I jump it sways.

    • @aarthificial
      @aarthificial  2 года назад

      I need some more info:
      1) What's your Unity version?
      2) What's your OS and graphics card?
      3) Is the demo on itchio working on your machine?

    • @eliaslamsa6541
      @eliaslamsa6541 2 года назад

      @@aarthificial
      1 2021.1.12f1
      2 windows 10 and 1660 gtx
      3 I cant get the demo working even though I installed git and git lfs

    • @aarthificial
      @aarthificial  2 года назад

      ​@@eliaslamsa6541 That's wierd. I have a windows 10 with 1660 ti and everything seems to work correctly on 2021.1.13f
      You could try building the game to see if it's gonna work outside the editor.
      I know for a fact that sometimes other editor windows can mess with the velocity buffer so maybe that's it?
      For example, when you have a shader graph window open or the scene view visible when playing the game.

  • @balazsvince1242
    @balazsvince1242 2 года назад

    I wish I could support u but as I dont have my own income I cant
    Cuz u make great videos:DD

  • @piousthepious
    @piousthepious 2 года назад

    Just found out about this now

  • @lordzockt1853
    @lordzockt1853 2 года назад

    :o A NEW VID WUT