- Home /
Terrain Grass black in build only.
I am adding grass to a terrain that is created at run time. This all works fine in the editor however When I try to use a texture in a format that supports transparency the grass doesn't show up in the build at all. If I use a texture that does not support transparency then the grass shows up as black blocks in build. This seems similar to what happens with a shader needed is not included in the build. However I don't know what shader I need to include.
Any help would be greatly appreciated. Thank you.
Anybody got any information at all that can help with this. I'm using unity's stock grass. I've seen many questions about this and no answers. I can't just leave it like this.
I really need an answer here. I can't find any info about this bug that's helpful even if I look 2 years back. This bug has been present for a long time.
Common guys somebody has to know something about this. Even just a little tidbit would help.
Answer by ODINKONG · Aug 26, 2016 at 12:19 AM
OK, I figured it out. Unity doesn't automatically include the grass shader unless there is a terrain with grass on it in the the starting scene. I'm sure this isn't the cleanest way to solve this but it works.
So just put a terrain with grass on it in your first scene and this should fix this issue.