Search Unity

Problem with transparent textures in Shader Graph

Discussion in 'Shaders' started by ForMiSoft, Aug 21, 2018.

  1. ForMiSoft

    ForMiSoft

    Joined:
    Dec 5, 2016
    Posts:
    8
    Hi, I'm trying to create a shader with a transparent texture, but without success. The picture shows that the texture contains an alpha channel, but even the first preview of Sample Texture 2D shows the texture as opaque. I added the slider for AplhaClipTreshold only as proof of the aplha channel, . Also, in the Select Texture dialog, you can see that the texture is transparent. Could anyone please advise me what I'm doing wrong?

    Unity version: 2018.2.4f1
    Lightweight Render Pipeline version: 3.0.0-preview
    Shader Graph version: 3.0.0-preview

    Image1.png
     
    Last edited: Aug 21, 2018
    hunter-baun and brainwipe like this.
  2. ryozombaku

    ryozombaku

    Joined:
    Jun 24, 2017
    Posts:
    3
    When your mouse is on the PBR Master node you can see a little Settings button. Go here and change Surface to Transparent.
     
  3. ForMiSoft

    ForMiSoft

    Joined:
    Dec 5, 2016
    Posts:
    8
    Thank you.
     
    Metu likes this.
  4. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    Wow, I wonder why they felt the need to hide it like that. Thank you.
     
    brainwipe likes this.
  5. Ranom

    Ranom

    Joined:
    Oct 10, 2012
    Posts:
    49
    This is still the #1 source for this info...
     
    khaled24 and brainwipe like this.
  6. TomavX

    TomavX

    Joined:
    Oct 23, 2016
    Posts:
    4
    Any way to expose this setting in inspector?
     
    brainwipe likes this.
  7. brainwipe

    brainwipe

    Joined:
    Aug 21, 2017
    Posts:
    78
    It's 2020 and this is still an issue.
     
  8. darkAbacus247

    darkAbacus247

    Joined:
    Sep 7, 2010
    Posts:
    251
    Thanks!
     
  9. gillemp

    gillemp

    Joined:
    Nov 23, 2015
    Posts:
    81
    I have the same question!