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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Applying shader to mesh causes it to turn transparent?

Discussion in 'Shaders' started by AlexisHW, Feb 18, 2020.

  1. AlexisHW

    AlexisHW

    Joined:
    Feb 18, 2020
    Posts:
    2
    Hello, I'm super new to Shaders in Unity. I'm trying to make grass for my project by using Brackey's tutorial:
    .
    I followed his steps closely and got the shader to work!

    The only difference is that I'm using the lightweight render pipeline (renamed to universal render pipeline?) instead of the high definition render pipeline in his tutorial. Again everything was going smooth, but as soon as I added all the extra nodes to get the grass swaying, my mesh turns transparent in scene view:

    Before I added the extra nodes the shader worked perfectly fine in scene view. I don't think it's an issue with my nodes, because the preview in the graph editor works great. Its only in scene view that it turns invisible. I tried playing my game to see if it would work but no dice. The shader even works in the inspector:

    Does anyone know how to fix this? Am I missing something? I also changed my master node to opaque instead of transparent. Still no dice.
     
  2. tmcthee

    tmcthee

    Joined:
    Mar 8, 2013
    Posts:
    119
    Try setting your render queue value to more than 3000
     
    AlexisHW likes this.
  3. AlexisHW

    AlexisHW

    Joined:
    Feb 18, 2020
    Posts:
    2
    I figured it out! It WAS my nodes. I was supposed to set my orientation from world to object :D