Hey there all. Since I’ve seen a few different posts and threads on this, thought I’d share what I have in my hand. Many people (like me) have a need for detail textures on the newest terrain engine for hdrp. The original one drew all the details in pink as they had no shader support.
So I’ve come up with a rather hack than a great shader. Using the ShaderGraph, one can actually make a supporting lit shader for painting detail on terrain. Just use a main texture with reference name _MainText and put your shader under path Hidden/TerrainEngine/Details and name it WavingDoublePass.
Please bear in mind that this is a very basic shader hack. No idea on performance. Please try/use with caution and definitely back your scene/project up before using this.
If anyone knows how to get billboarding working on this that would be great. Its the only feature thats missing to make it a drop in replacement for the current broken in built
Well I’ve tried my best to replace BillboardWavingDoublePass with a billboard I designed in shadergraph as well but somehow it simply refuses to render anything when set to billboard. Not sure why at this point… The shader works fine when I try it on a simple mesh and really makes it a perfect billboard but when I rename it to BillboardWavingDoublePass in the same folder as the normal one, it simply just does not want to draw…
Im going to look into this over weekend as Ill be back to doing dev on my personal project which I needed the grass for, if I make a breakthrough I will submit a pull request to the repo
Umm okay not exactly sure what you mean by that. I gotta say I’m not an expert at shaders or grapsh I2m just a mere tinkerer… So care to elaborate a bit?
Of course. Sorry about that. So for the shader that works, you have set the shader category/path to “Hidden/TerrainEngine/Details”. Did you also do that for the Billboard ShaderGraph?
Ah ok got it, Definitely did so. Both shaders are under that category. Maybe we’re talking about a naming issue or something else? Also as another note, this might be of interest; When I take a look at the original BillboardWavingDoublePass shader, I see the render mode is set to “GrassBillboard” but as far as I know there’s nothing like that I can set to in Shader Graph. So, could this be a lead?
Thanks for all the help btw. Really appreciate your time @wyatttt
Guys just wanted to chime in and say that the work you guys are putting into this issue is not going un-noticed! I myself have been wanting a solution to this for a while and I know a few other people such as @hippocoder will directly benefit from the time you are putting in so a very warm thank you!
Best talk to the author. It doesn’t work until custom nodes return to SRP though (soon ish). It’s by far the best vegetation rendering in Unity though, by miles. But that’s partly due to Unity entirely lacking in this department too.
I think it’s performance and tools are very valid and useful additions to anyone’s terrain-based toolbox. Weirdly I don’t want to use it but probably will have to. The reason I don’t want to use it is nothing to do with the asset, simply I like to use built in stuff where possible in case of depreciation.
Thats mostly my concern, I have had too many assets get unsupported or removed entirely from asset store that I try my best to stay clear of them entirely. But as you say it seems to be the best solution for vegetation currently so I guess I may have to bite the bullet. Anyway I will contact the author for more information and watch some videos regarding it, thanks!
For some reason, I’m not getting this workaround to take in 2019.2 HDRP alpha? I drop it into the assets folder and nothing happens. Am I missing something?