Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Poggle's avatar
Poggle
Honored Guest
3 years ago

Passthrough renders on all unlit transparent materials

Hey I'm curious if anyone else has had this issue.

I am working with passthrough in a quest app and I have a movable passthrough window as a tool for the user. It looks great and its rendering just the way I want it, it is based off of the oculus demo scene "Selective Passthrough" which uses a material to mark things as passthrough or not.

The issue I have found is that every material that is unlit and transparent (which are used quite often in the scene) are rendering as a passthrough material. I have some quads for little fake drop shadows that are passthrough, peoples name tags, transparent logos on the way and even users glasses are all passthrough. I am using basic unlit/transparent shades for these objects. The standard shader doesn't seem to exhibit the problem. Why is this happening? I would appreciate any help. Thanks

4 Replies

  • Do you fix the issues? I have just posted the same question and then found yours and surprised here is no answer or respond yet. 

    • BogomilPetrov's avatar
      BogomilPetrov
      Protege

      Could you try opening the shader and where it says ZWrite set it to on instead of off?

  • Hey. I had a similar issue when using the Selective Passthrough shader.

     

    I fixed my problem by opening the shader code and setting Z Write to on. I found that when it was off none of my transparent materials rendered over the passthrough at all.

  • I'm having the same issue, but updating ZWrite didn't affect anything