I have a test scene with a bunch of trees. If I use an HDRP/Lit shader with alpha clipping enabled for the leaves, it runs pretty decent. However, if I use a simple shader graph with alpha clipping, the performance tanks.
----------
I'm getting 8.3ms/frame with the lit shader vs 11.1ms/frame with the shader graph shader with 100 trees. This is all in the editor, not a build.
----------
Any idea what could be causing this performance difference and how to fix it? I want to give the leaves a custom shader graph, but the performance hit from the alpha clipping alone makes this not very viable for my scene.
Here is a screenshot of my shader graph:
![alt text][1]
[1]: /storage/temp/174931-alphaclippingshadergraph.png
↧