Search Unity

Make the main color not affect the texture color-

Discussion in 'Shaders' started by Nytro99, Jul 18, 2014.

  1. Nytro99

    Nytro99

    Joined:
    Jul 18, 2014
    Posts:
    6
    Hi!

    I want make my character face change color but using the same texture for eyes and mount with trasparency.
    If i use the diffuse shared, i can change the Main Color for the face, and apply the base texture for the face details but the texture is affected by the Main Color (i think is multiplied).

    What shader I can use to archive this? I need to write my own shader? Some example? I tried also with a 2nd material channel and use the decal shader but the result is the same...

    Attached you can find the result, oblivusly i want the eyes white but they are multiplied with the Main Color...

    Thank you in advance.
     

    Attached Files:

  2. hadidx

    hadidx

    Joined:
    Aug 28, 2012
    Posts:
    29
    You can give the eyes a different material in your modelling program.
     
  3. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
  4. Nytro99

    Nytro99

    Joined:
    Jul 18, 2014
    Posts:
    6
    Thank you mbowen89, is exacly what i do. Thank you.