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

Loosing transparancy in Sprite (Default -> Diffuse Shader)

Discussion in '2D' started by Grillstern, Jan 27, 2015.

  1. Grillstern

    Grillstern

    Joined:
    Oct 14, 2013
    Posts:
    32
    Hi,

    "Shader/Sprites/Default" (Material) ist working fine with my 24bit/.png files and its transparency.

    Now i want to put some lights on my sprites.

    So i changed the shader to "Shader/Sprites/Diffuse". Now light is working fine, but the sprite lost its transparency?! Is it correct!?

    How can i use my .png sprite as a sprite with transparency and lightning?
     
    Last edited: Jan 27, 2015
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    The Sprites/Diffuse shader does use transparency.

    --Eric
     
  3. Grillstern

    Grillstern

    Joined:
    Oct 14, 2013
    Posts:
    32
    until yesterday i was running 5.0.0B17 where the shader seemed buged. Updates to latest 5.0.0.B21: Shader is working again
     
  4. TwiiK

    TwiiK

    Joined:
    Oct 23, 2007
    Posts:
    1,729
    theANMATOR2b likes this.