I have been running into the issue of shadergraph shader not showing when in a standalone build. They do however show in editor. The meshes do show in standalone when a standard URP lit material is applied.
Things i have tested but did not fix the issue:
- Enabled GPU instancing on the materials.
- In project settings i added the shader to always included shaders.
- change the project settings shader stripping to keep all variations
It seems like something in the shadergraph shader is not compatible with instancing.
Would be great to know if anyone managed to fix or found a solution to this issue.
Graphics.DrawMeshInstanced(drawSector.grassType.mesh , 0 , drawSector.grassType.material , drawSector.matrices);