Hello dear Polycounters, i need your help
i'm working on environment for my game, a street to be exact. Here's a model i created in Blender:
I'm trying to get it into to Unity, and everything is fine up to the
point where i try to add road surface markings (white stripes). I want
to add them as a secondary maps. I have second UV channel layed out
properly, stripes have a correct alpha channel, everything looks good in
terms of setup. However after applying a secondary map, the stripes do
appear, but the whole street becomes black for whatever reason. I don't
understand that, since the whole area except stripes is alpha channeled,
there should be no texture at all.
Does anybody have any idea from where does this black overlay comes from ? Additionaly, do you think this is a good idea to add those stripes as a secondary map, if not, what's the better approach.
Replies
They do have a Detail Mask in which you could put your alpha as a grayscale texture.
Or you could try a decal shader instead.
https://docs.unity3d.com/Manual/shader-NormalDecal.html
I will try with hiding black areas with detail mask as you suggest.