Hello,
I have been banging my head against the wall trying to figure out how to make a simple quad billboard in HDRP Shadergraph! Ideally it would work like the HDRP particles sample. Just a simple quad facing the camera. I followed a number of tutorials online, but none of them seemed to work. It think it has to do with the way HDRP has camera relative space. If anyone has a working shadergraph for a quad billboard in HDRP, please let me know.
Thank you!
EDIT: This was solved below. Also, if you are using version 2022 LTS, you will not be able to get the billboard subgraph via the package manager. You must create a new project in Unity 6, download the sample, then copy-paste the billboard subgraph from that Unity 6 project into your real project. Just put it into your old project’s asset folder and it will then be available as a subgraph you can use in the shader editor.
If you import the Shader Graph Feature Examples sample set from the Package Manager, it comes with a subgraph called Billboard that makes a quad face the camera and works in both HDRP and URP. After importing the sample, the subgraph can be found here:
Assets/Samples/Shader Graph/Common/Subgraphs/Billboard
Let me know if you need more instructions for importing the sample from the Package Manager.
Hi Ben,
Thank you for getting back to me. That sounds great! I looked for the Feature Examples sample but only found Procedural Patterns and Node Reference samples.
Let me know if there is another way I can import that sample.
Thank you!
Looks like you’re using a version of the editor that doesn’t have that sample. So if you install a newer version of the editor, you should find it. If you don’t plan to upgrade your project, that’s fine. You could just make an empty project in a newer version of the editor, grab that subgraph you need and copy it to your project in the older version. Should work fine.
Got it. I just created a new Unity 6 project and acquired the subgraph that way.
Works perfectly! No way I could have figured out how to wire that up myself. Seems like there are a lot of nice production samples available too, pretty cool stuff.
Thank you!