Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted 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:
    1
    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:
    1
    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:
    162
    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.
     
unityunity