Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to correctly make the texture black and white for making it colorable

Discussion in '2D' started by DangerKiddy, Dec 26, 2020.

  1. DangerKiddy

    DangerKiddy

    Joined:
    Feb 29, 2020
    Posts:
    8
    In game I'm giving random colors for humans. Like clothes, hairs and skin.
    I tested how coloring works with hairs and it is perfect:
    upload_2020-12-27_0-3-40.png
    (How does it look like in photoshop)

    upload_2020-12-27_0-3-59.png
    (Applying color in photoshop with "Multiply" modificator)

    upload_2020-12-27_0-4-31.png
    (In-game/Unity view with same color like in photoshop)

    But when I tried to make colorable the skin, all became bad, because I can't find needed black&white colors to make skin look good:
    upload_2020-12-27_0-7-58.png
    (Photoshop view, used same colors of skin for left(static) image and right(black&white) image)

    upload_2020-12-27_0-8-46.png
    (And how black&white looks like)

    So, what I'm doing wrong to make skin colorable?
     
  2. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    what you want to do cannot be done that way

    black and white cannot account for saturation, therefore changing 1 color slider will never give you the results you want

    for this effect you need to use a shader that changes colors, the easiest you can check is shader graph tutorials for color swap
     
  3. DangerKiddy

    DangerKiddy

    Joined:
    Feb 29, 2020
    Posts:
    8
    Okay, thank you!