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

Question Replacing an area on a texture with a transparent texture

Discussion in 'Shader Graph' started by AkhmedAbasov, Jul 13, 2023.

  1. AkhmedAbasov

    AkhmedAbasov

    Joined:
    Mar 13, 2014
    Posts:
    162
    To make it clear what I'm trying to do. I am trying to implement the placement of a tattoo on a body area. Which way I went: there is a base texture, there is a texture with green circles which helps to find the desired area. Then I replace the green area with my tattu. The problem is that my tattoo has a transparent background, but in the shader I get a white background.

    tattot.png

    how to make the background transparent?
     
  2. venediklee

    venediklee

    Joined:
    Jul 24, 2017
    Posts:
    143
    You need to set the shader to transparent, then an alpha node will appear in the fragment block. If it doesn't, right click the fragment block and add node->alpha

    then, pass 0 to alpha where the tattoo is or something

    upload_2023-7-16_23-23-49.png