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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Masking color over texture

Discussion in 'Shader Graph' started by RicardoCoelhoTTW, Jun 28, 2021.

  1. RicardoCoelhoTTW

    RicardoCoelhoTTW

    Joined:
    Jun 15, 2021
    Posts:
    13
    I have these 4 properties:
    Main texture
    Mask texture (black & white)
    Color
    Vector1 Intensity

    I need to overlap on my Main texture, the Color, where the white parts of the Mask texture are. The Intensity will define how much of the color will show.

    Example:

    Main texture: Skin texture
    Mask texture (black & white) (white spots where the cheecks are)
    Color: Red
    Vector1 Intensity: 0 to 1

    As the user changes the Intensity between 0 and 1, I want the character to blush, making the Color appear in the designated white areas of the Mask texture