Search Unity

Bug Shadergraph breaks cut-out rendering in standard pipeline.

Discussion in 'General Graphics' started by dragonalumni, Oct 26, 2022.

  1. dragonalumni

    dragonalumni

    Joined:
    Jun 25, 2021
    Posts:
    31
    3d, standard render.

    I've got a several PNG files with decals on them, the background is transparent.
    I've made a material for each PNG file and set the render mode to cut-out.
    Each material has it's own plane file (scaled down) so that I can transform them on the fly.

    Looks great while previewing it in Unity play mode.
    Comes out as garbage in a build. (A square image with a white-ish background with the decal).

    I've tried googling solutions and tinkering with the png files and material settings, nothing seems to work.

    Edit: At time of posting I wasn't aware what was causing the problem, but after some testing I found shadergraph is breaking cut-out rendering on standard pipeline.
     
    Last edited: Oct 27, 2022
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,408
    building for what platform?
    test also that quality settings are same for the editor and build.

    any errors or warnings in build player.log? (like missing shader)
     
    dragonalumni likes this.
  3. dragonalumni

    dragonalumni

    Joined:
    Jun 25, 2021
    Posts:
    31
    update:
    Thanks to your questions I was prompted to create a mini-project to see if I could get this working the way I expected it to. Sure enough everything works fine. But after a little bit -- well no, two days of thinking about this I found out the root cause.

    It's shadergraph.

    As soon as I installed shadergraph on my working mini-project it broke the cut-out rendering.
     
    Last edited: Oct 26, 2022
  4. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,634
  5. dragonalumni

    dragonalumni

    Joined:
    Jun 25, 2021
    Posts:
    31
    Thanks for the link.