Can someone teach me step by step how to make an hlsl file. I’ve looked at several tutorials with shader graph, and some tell me to add my hlsl file, but they don’t tell me how to make one.
Hi,
Have you checked the manual?
https://docs.unity3d.com/Packages/com.unity.shadergraph@6.7/manual/Custom-Function-Node.html
I’m not sure if the manual actually tells you how to make an hlsl file. From what I see, it just says to add the file to your custom function.
Open the folder in Explorer, create an empty text file, change the extension from .txt to .hlsl.
Thanks. It was a lot more simple then I thought it would be. God bless you good sir
Hi, I see this thread is pretty old now, but in case other users would ask the same question, here are two solutions:
- VFX Graph allows creating a blank HLSL file from Assets/Create/Visual Effects/HLSL file
- Alternatively, you can give a try to this HLSL Template package helping with custom functions for both Shader Graph and VFX Graph.
Cheers!
i think the HLSL template need to be included into URP/HDRP packages since both use shadergraph and use HLSL