Search Unity

Question Why doesn't Multiply work to change the texture color in Unlit vs Lit?

Discussion in 'Shader Graph' started by OverVenture, Apr 26, 2020.

  1. OverVenture

    OverVenture

    Joined:
    May 4, 2015
    Posts:
    3
    I am brand new to working with Shaders, and haven't worked with any code for them, only the Shader Graph. It's very possible I'm missing an extra necessary step for Unlit that I don't know about. upload_2020-4-26_9-36-49.png upload_2020-4-26_9-37-44.png

    Main Texture -> Sample Texture 2D -> Multiply (by Color) -> Master

    Lit: Note that Preview is displaying the desired outcome.
    upload_2020-4-26_9-36-49.png

    Unlit: Note that following the same steps did not produce the desired result.
    upload_2020-4-26_9-37-44.png


    Why? Is it me or a bug?
     
  2. gegory

    gegory

    Joined:
    Jul 22, 2014
    Posts:
    2
    Me too. The situation is similar for me. I'm work in 2D laser line:
    Sample texture 2D + Color -> multiply = nothing... :S
    Sample texture 2D + Color -> add = work but no glow effect.
     
  3. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    163
    Your color property likely has an alpha of 0. The sprite master nodes use the Alpha value of the color as the alpha of the shader, so just edit your color property to have an Alpha of 1.
     
    mi31ta03r likes this.
  4. gamereb

    gamereb

    Joined:
    Nov 20, 2019
    Posts:
    1
    I couldn't find color property. Could you tell me where is alpha settings?
     
  5. James_M_SteamrollerStudios

    James_M_SteamrollerStudios

    Joined:
    Jan 20, 2016
    Posts:
    6
    Select your Color(4) Node. The 4 in there stands for RGBA. By selecting it you should get settings for changing the alpha properties.