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 Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Unity adding background to transparent image, please help

Discussion in 'General Graphics' started by Dante_Unity, Feb 25, 2023.

  1. Dante_Unity


    Apr 15, 2020
    Screenshot (151).png

    In the above images you can see 3 nearly identical textures with the main difference being the first texture contains a black background, the second and third do not as the background is hidden in photoshop before exporting. The problem is I can use the first image with an Unlit shader in Unity using an additive blend mode and it will hide the black but for the second two images Unity automatically creates a background and I'm unable to remove.

    Here is another view to show the alpha channels of the 3 textures:
    Screenshot (150) - Copy.png

    Here is an example of what happens when I switch the blend mode on the shader for the third texture (the one without a background) from additive to alpha:

    Screenshot (154) - Copy.png Screenshot (153).png

    Now note, I realize I could just use the additive shader to create the white or colored crack but the point of this is to use a dark black color which does not display in an additive blend mode.

    Please assist.