Adding "dirt" to city street

Hey!

I have made a street in Unity consisting of a sidewalk, road and buildings, with the goal to making it look as realistic as possible. However, the whole street looks too clean and I figured making it more worn and used (e.g cracks in pavement, dirt textures to add over the materials, gravel etc.) would add realism.

I’m more or less a beginner at Unity, and I would love some tips/insight on how to go about this. My focus for now is just to add “dirt” on the sidewalk and on the side of the house facades. Is it possible to find/create dirt textures and add over existing materials? The problem I am expecting to encounter is that it will be difficult to make it look random or nonsymetric.

Any insight would be greatly appreciated!

Of course it is possible! All you need to do is create your own decal textures and using it in planes with a transparent shader over the geometry. Use a two triangles plane rather than the plane contained in unity, it is unnecessarily highpoly for this case. Here is one example, it’s not in unity but the logic is the same:

You could look in writing a multi texture shader with blending. but the way above is also doable, I doubt if its render friendly though

I’m not sure how I would go about creating decals on my own, I’ll look into if it’s possible to find some already created ones however!

This might be easier however If I can find a good enough texture, I think the 0-1 parameter might help a lot too. However I’m skeptical it would look good to have a repeated texture over the whole street, since dirt is “randomized” rather than repeated. Perhaps dividing the street into segments would help.

I’ll play around and see how it looks, thanks a ton guys!

More tips would also be greatly appreciated :slight_smile:

1 Like