So, this video is pretty old now, I just wanna add that Compute Shaders are better to use than Geometry Shaders, because they are supported on more platforms I've got the compute shader versions here : BIRP: www.patreon.com/posts/compute-shader-53587750 URP: www.patreon.com/posts/54164790 I'll make a new video for the compute version, there are some more improvements coming to it too :)
Hey, I've pasted the 'GrassComputeScript', 'GrassPainter', and the 'ShaderInteractor' scripts in my assets folder, and the 'EditorGrassPainter' script inside Assets > Editor. And then, I added the GrassPainter on an empty gameobject. After I tried making a material from the shader, I get this error: 'tex2Dproj': no matching 2 parameter intrinsic function; Possible intrinsic functions are: tex2Dproj(sampler2D, float4|half4|min10float4|min16float4) Compiling Fragment program with UNITY_PASS_FORWARDBASE DIRECTIONAL SHADOWS_SCREEN LIGHTPROBE_SH _SHADOWS_SCREEN Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_DESKTOP UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING I'm working with BIRP here. Is there anything I'm doing wrong? How do I fix this? The shader looks super cool and perfect for my tiny project and would love to put this in there. Thanks in advance :)
So at this point the shader is for the Built-in renderer, I haven't looked at it in URP yet, but it should be pretty easy to convert, I will update this post when I do :) Edit: It is done! Here is the URP version : www.patreon.com/posts/geometry-grass-47447321
How do I actually get the shader into a unity project? Do I just copy and paste the shader code into a new shader? I tried to open one but it only opens up in shader graph.
When I add your URP version, the shader throws the error "'GetAdditionalLight': no matching 3 parameter function", why's that? Please help i want to use so bad your shaders in my game, they look awesome
wow, I am absolutely speechless. You are a blessing, really. I only just started making my own games with unity and this is like black magic to me. Thank you so much for the hard work and taking all this time to explain how to use it.
Gotta say, you channel and work deserves a lot more visibility than it currently has here in RUclips. Your game looks fantastic and your tutorials are very enlightening. All the best :)
So unfortunate that I could not discovered your channel before. It is not just the tool but sharing it freely with the people is also amazing. I'll follow your videos from now on. cheers & take care
But there are default feature in Unity - Grass.. when you painting on terrain, you can draw plants, grass and etc and change its density and also its supports lods and changing of quality settings
This helped me so incredibly much, I've been seeing your Patreon all over and am seriously considering subscribing because you teach game dev so well!! Thank you for the amazing tutorial, I look forward to seeing more!
Wow! This really is a great and helpful tool. Unity should implement this in the engine, if you ask me. Or at least it should be a package. Thanks for sharing!
Wow... thank you very much for this. For somebody starting out in Unity this is great. Thank you for sharing this for free... as soon as I got some money I will surely join your patreon. Great work. Thx again :D
When I try to do this and paint it just paints tiny orange dots and it is nothing like the video. It may have something to do with the material because the material icon is just a black circle while in the video it’s the icon of grass.
What I did is I saved the mesh what I generated with the Grass Painter script, and used that mesh in my prefab. Also this is a pretty good shader, thanks for sharing
I had a problem where when using the grass on land made with a poly brush would make the grass just place in their air, for me I fixed that by deleting the mesh collider of the poly brush made terrain(selecting the terrain then going into inspector and then right-clicking the "mesh collider" and clicking "remove component") and re-adding it(in inspector go to the bottom under all ur components and click add component and search and add "mesh collider"). I think the mesh collider goes back to the original terrain you started with if you mess with the scale(scale of the terrain, not the grass shader) or something.
Great tutorial but it doesn't work for me. I've downloaded the "GeometryGrassPainter" script and put it in the Assets folder. I then downloaded the "GrassPainterEditor" and at first I put it inside the Assets/Editor folder but the brush circle doesn't appear and I cannot paint the grass. Then I put the "GrassPainterEditor" right into the Assets folder and still it doesn't work. Can you help please? I'm using Unity 2020.3.
This is awesome! But how can we make the grass Interact to multiple players or objects? We will need the shader to check for all GameObjects with the ShaderInteractor script attached.
Hello, I really like your work and wanted to ask if it could be possible to set the grass bottom to a transparent color so the grass will blend into the ground? :)
Yep, thats possible, if you add a blendmode: Blend SrcAlpha OneMinusSrcAlpha under the first subshader. And then in the first fragment shader, before it returns final: float alpha = lerp(0, 1, saturate(i.uv.y * 3)); final.a = alpha; It blends the very bottom bit :)
Hello ! I am using urp with the compute version of your shader and it works fine on my mac but the grass doesn’t show up on an ios build. Do you know why ? Anyways great job 👍
sorry I want to ask why my shader Interator didn't work, I do the same step with you but it didn't work if I set more higher Interator strengh and Interator radius
So, this video is pretty old now, I just wanna add that Compute Shaders are better to use than Geometry Shaders, because they are supported on more platforms
I've got the compute shader versions here :
BIRP: www.patreon.com/posts/compute-shader-53587750
URP: www.patreon.com/posts/54164790
I'll make a new video for the compute version, there are some more improvements coming to it too :)
the links in Pastebin do not work
cant wait! I am not experienced enough follow the tutorials in the links above. I tried but ended up stuck.
by the way, do you have any plans for uploading your shaders into unity asset store?
Hey, I've pasted the 'GrassComputeScript', 'GrassPainter', and the 'ShaderInteractor' scripts in my assets folder, and the 'EditorGrassPainter' script inside Assets > Editor. And then, I added the GrassPainter on an empty gameobject. After I tried making a material from the shader, I get this error:
'tex2Dproj': no matching 2 parameter intrinsic function; Possible intrinsic functions are: tex2Dproj(sampler2D, float4|half4|min10float4|min16float4)
Compiling Fragment program with UNITY_PASS_FORWARDBASE DIRECTIONAL SHADOWS_SCREEN LIGHTPROBE_SH _SHADOWS_SCREEN
Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_DESKTOP UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING
I'm working with BIRP here. Is there anything I'm doing wrong? How do I fix this? The shader looks super cool and perfect for my tiny project and would love to put this in there. Thanks in advance :)
In GrassComputeScript I get shaderinteractor missing error
Edit : nm I was missing shader interactor file. Didn't saw it on ur patreon page at first
So at this point the shader is for the Built-in renderer, I haven't looked at it in URP yet, but it should be pretty easy to convert, I will update this post when I do :)
Edit: It is done! Here is the URP version : www.patreon.com/posts/geometry-grass-47447321
Love you content mate, learnt so much from following what you make available for the general public!
How do I actually get the shader into a unity project? Do I just copy and paste the shader code into a new shader? I tried to open one but it only opens up in shader graph.
When I add your URP version, the shader throws the error "'GetAdditionalLight': no matching 3 parameter function", why's that? Please help i want to use so bad your shaders in my game, they look awesome
@@anth378 Just remove the 3rd parameter in that function, it's half(1,1,1,1) or something. (Means you're using an older version of URP than me)
@@MinionsArt yeah, I'm using the one from 2019.4, I'll try that, thanks!
wow, I am absolutely speechless. You are a blessing, really. I only just started making my own games with unity and this is like black magic to me. Thank you so much for the hard work and taking all this time to explain how to use it.
This looks so similar to the grass in Genshin Impact, I love it, thank you so much for sharing!!! ❤️
Gotta say, you channel and work deserves a lot more visibility than it currently has here in RUclips. Your game looks fantastic and your tutorials are very enlightening. All the best :)
So unfortunate that I could not discovered your channel before. It is not just the tool but sharing it freely with the people is also amazing. I'll follow your videos from now on. cheers & take care
This is amazing, I still refer to your tutorial from time to time. I also want to thank you for providing the break down of the process!
crazy how this is not a default feature, very cool!
But there are default feature in Unity - Grass.. when you painting on terrain, you can draw plants, grass and etc and change its density and also its supports lods and changing of quality settings
Wonderful job! Shaders hurt my brain awesome of you to share this with others :D
Wow, this is incredible. I've been searching this for a long time and you made it perfect. Thanks
This looks simply wonderful. Thank you for taking the time to share it all!
Im mind blown by this... Im going to be using this alot now! Thank you!
Thanks for sharing Joyce. The game is turning out great btw, can't wait to see more
Thanks! The game is going slow, but slow progress is still progress :P I'm planning on a dev vlog on Astro Kat soon.
this looks so awesome. keep up your work
Wow, that was phenomenal! Very nice tool! I really appreciate you sharing this, thank you! Thank you!!
This helped me so incredibly much, I've been seeing your Patreon all over and am seriously considering subscribing because you teach game dev so well!! Thank you for the amazing tutorial, I look forward to seeing more!
Thank you for your Grass Shader! It's really helping a lot
Amazing work! Thank you Joyce!
Thanks for this!
I'm waiting eagerly to play your game
Thanks MinionsArt The best grass tutorials for open world game.
Didn't work with URP, but then I saw a hyperlink to the URP version on your post, works great! Thanks for sharing!
This is really AWESOME ,you're the BEST!!
That's,Impressing.Great Work!
Wow! This really is a great and helpful tool. Unity should implement this in the engine, if you ask me. Or at least it should be a package. Thanks for sharing!
But it was already implemented in terrain - Check Unity Terrain Grass
@@HUQAFU the unity terrain grass is very basic and does not include this type of interactivity with grass
This is just what I needed, you are the best!!!!!!
wow, this is absolutely incredible! you are a genius!
OMG! Thank you. It's most beautiful grass I ever seen.
thats insane!!!! thank you so so so so much! its amazing
Thank you so much. This saves me both time and money !
This is such an amazing tool, thank you so much just what I've been looking for :)))))
Wow... thank you very much for this. For somebody starting out in Unity this is great. Thank you for sharing this for free... as soon as I got some money I will surely join your patreon. Great work. Thx again :D
Gooooooooooood Work, i like that, you've worked hard for the community thank you
This is amazing. Thank you for showing it off!!
God bless you!. Thank you so much!
Its perfect!! Great job!
Thank you!
Thanks! the grass looks very cool :D
Amazing work once again
You are AMAZING! this is such a cool tool! Thank YOU!
Wonderful work ! Thank youuuuuuu
OMG THIS IS SO AWESOME THANK YOU!!!! 10 / 10
I'm glad you like it!
Wow, this is great!
Thank you so much for this!
Thank you for the tutorial! it make my game look nice!
Thanks! Its very useful thing!
Thats awesome! I'll have to check it out! Subbed!
THIS IS AMAZING! ❤️❤️✨
dude, it's awesome! thanks for scripts!
Really nice grass shader, very cool!
Amazing video! I love you!
perfect grass for the game im making, thank you so much for this wonderful tool!!!
Wow!, awesome tool!, and looks great!
Thank you :D
Thank you so much!
Outstanding work! 🤤
You are very talented!
Amazing work once again >3
Amazing work, for real.
Thanks SOOOO much I looks SO good!
there is a method to incrase the brush size more than 10?
Simply amazing!
Wow...Thx your work!!! 👍
wow that was really cool 👍
Thank you so much! Is it possible to make the grass not react to light? Unlit?
Thank you very much! Love ya!
best grass I have ever seen in any game.
really really really really good
Amazing! Thanks for sharing!!!
Wow rly nice, thanks ! :)
Thanks! Have fun with it.
When I try to do this and paint it just paints tiny orange dots and it is nothing like the video. It may have something to do with the material because the material icon is just a black circle while in the video it’s the icon of grass.
Hi ! Do you know How could we use it in HDRP ?
Hi ! Nice work :o ! Is it really impossible to use it in HDRP?
Looks amazing, i don't know what else to say.
It's bugged... If i press Ctrl+Z Destroy the script lol, and i need to put script again
牛逼!学习了!感谢大佬。
Great code and great content thx for the free education ❤️
Amazing Work .. Well Done ..
you´re my HERO!
i realy will gett it and put your name (or some reference) in some place on my game ....
This is actually too good to be free, you are great, keep it up
please can you share code for auto-generate
having the same problem! can you please guide me if it was solved for you!!! please
What I did is I saved the mesh what I generated with the Grass Painter script, and used that mesh in my prefab. Also this is a pretty good shader, thanks for sharing
great job
thank you for share
How it can be compatable to HDRP? Thx for now
Love your videos
love the video keep it up
Great tool, thanks
Does anyone know how to make this react to lighting like night and day.
you are the best thankyou❤❤
I had a problem where when using the grass on land made with a poly brush would make the grass just place in their air, for me I fixed that by deleting the mesh collider of the poly brush made terrain(selecting the terrain then going into inspector and then right-clicking the "mesh collider" and clicking "remove component") and re-adding it(in inspector go to the bottom under all ur components and click add component and search and add "mesh collider"). I think the mesh collider goes back to the original terrain you started with if you mess with the scale(scale of the terrain, not the grass shader) or something.
AMAZING!
You are AWESOME
Thanks to you, I finally got out of the terrain.
Great tutorial but it doesn't work for me. I've downloaded the "GeometryGrassPainter" script and put it in the Assets folder. I then downloaded the "GrassPainterEditor" and at first I put it inside the Assets/Editor folder but the brush circle doesn't appear and I cannot paint the grass. Then I put the "GrassPainterEditor" right into the Assets folder and still it doesn't work. Can you help please? I'm using Unity 2020.3.
Hello i have the same problem did you find a solution?
@@horbita Are you using urp version for the shader
Are you using urp version for the shader
hi, everything appears to be working except the grass material is just pink, any idea how to fix this issue?
This is awesome!
But how can we make the grass Interact to multiple players or objects?
We will need the shader to check for all GameObjects with the ShaderInteractor script attached.
wow really good grass!!
The grass says it is being put down, like the amount of grass on the plane is going up but the grass just isn’t there
for some reason, when right clock, it does not paint and only shows this eye icon. Can you please help?
Hello, I really like your work and wanted to ask if it could be possible to set the grass bottom to a transparent color so the grass will blend into the ground? :)
Yep, thats possible, if you add a blendmode:
Blend SrcAlpha OneMinusSrcAlpha
under the first subshader.
And then in the first fragment shader, before it returns final:
float alpha = lerp(0, 1, saturate(i.uv.y * 3));
final.a = alpha;
It blends the very bottom bit :)
@@MinionsArt thank you :)
When i create a new material from my shader, there is a black dot, like there is nothing as shown in the video. please help
Looks great ! Sadly it does not work for me. I get « Vertex or fragment shader requires ComputeBuffer at index 2 » error
Hello ! I am using urp with the compute version of your shader and it works fine on my mac but the grass doesn’t show up on an ios build. Do you know why ? Anyways great job 👍
sorry I want to ask why my shader Interator didn't work, I do the same step with you but it didn't work if I set more higher Interator strengh and Interator radius