I created a shader for grass, threw it on Quad and created Prefab from it. But the problem is that when I add it to Terrain as a Detail Mesh it becomes white (when I add it as a Tree Mesh everything works fine). Unity 2019.4.38f1, HDRP
Well I guess you can use that for a snow biome!!!
Jokes aside you need to give us more detail!
How to Report Your Problem Productively in the Unity Discussions
Here’s the absolute bare minimum of information you need to include.
- What you want (Try to be clear, we can’t read your mind.)
- What you tried (We hope it’s more than just hoping for a miracle.)
- What you expected to happen (We know you have high hopes, but let’s keep it realistic.)
- What actually happened (please include log output, variable values, and any errors you saw. The more detail, the less we have to guess.)
- Links to documentation you used to cross-check your work (CRITICAL!!!)
The reason YOU need to provide links is so we can do our jobs efficiently. Plus, it demonstrates that you’ve actually tried to put some effort into this instead of just throwing your hands up and expecting us to do the heavy lifting for you. If you can’t even be bothered to look up the documentation, why on earth should we bother responding?
I tried to create grass (Detail Mesh), for this I created a shader according to the video. The shader works well and so does the material with it. I created a Quad object on the scene, then threw the material I created from the shader over it and moved it into Project Explorer creating a Prefab. When I put this Prefab on the stage it shows up as it should, but when I use it in Terrain as grass it doesn’t have a texture on it for some reason (it’s like a plain white Quad object). I have searched the forums (including this one) for an answer, as maybe someone has encountered something like this, but I have not found anything. Also tried to change the settings of the shader and material, but all to no avail.