Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to apply 2 materials and change colour of base material

Discussion in 'General Graphics' started by batvink, Jul 9, 2020.

  1. batvink


    Sep 26, 2019

    my scenario is easy to describe...

    • I have a car, the base material should be white, so that I can change the colour in a script.
    • The second layer is the detail over the top of the paint - lights, trims, logos etc.

    How can I achieve this?

    I tried the default shader with secondary albedo. (base colour in main, detail on secondary map). This didn't work, all parts of the material including detail were coloured. I cant switch the textures around, because the secondary albedo has no colour component.

    I looked at adding a second material on the mesh renderer. As soon as I increased the number of materials to two, it gave me a warning box telling me this is a hit on performance. As I have 6 cars, it would be 6x the performance hit.

    Any help appreciated!