Search Unity

Help Wanted Rendering a texture on top of another on single material

Discussion in 'Shaders' started by PlayPrey, Jun 18, 2021.

  1. PlayPrey

    PlayPrey

    Joined:
    Apr 7, 2013
    Posts:
    1
    Good evening,

    I am working on a low poly styled driving game, and I want to be able to use the Albedo RGB feature for materials. In other words, change the color of a car without having a specific texture for that color alone.

    The car is too low poly for the use of multiple materials.

    The texture files, as of now at least, are 128x128 in size.

    What I am thinking is having a base texture, that has the bodywork texture. This should be colorable.
    Then there's another slot for another texture, that has the car details, like grill- window etc.

    The best thing would be to replace whatever pixels that isn't transparent on the detail texture with the detail texture.

    Unless you have better suggestions of course. :)

    The other articles I found seemed to focus on combining 2 textures instead of "adding on top".

    I would appreciate examples of usage a lot too, I have very little shader experience.
     
unityunity