Search Unity

Question Modify Standard Shader or New Shader With Second UV Channel

Discussion in 'Shaders' started by bariskaplan, Jan 7, 2021.

  1. bariskaplan

    bariskaplan

    Joined:
    Oct 15, 2013
    Posts:
    6
    I am working on a project which needs a special shader. I dont know how to write shaders and searched for possible solutions but couldnt find any proper solution.

    I have a car model wtih 2 different uv maps and using standard shader on it. I want to use albedo texture and decals texture in this shader. Standard shader has a property named "UV Set" for second uv channel. It is working like I want but except color because when I change the albedo color, also decals texture getting colored.

    How can I modify the shader to not colorize the decals texture (secondary map in standard shader) ?

    or

    How can I write a shader with mainTex,decalTex,color properties but decal texture should be in second uv channel and not affected by color?

    Thanks
     

    Attached Files:

  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    UnityMaru likes this.