cancel
Showing results for 
Search instead for 
Did you mean: 

Passthrough renders on all unlit transparent materials

Poggle
Honored Guest

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 4

andhikadimas
Explorer

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
Protege

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.

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

abebkoFV
Explorer

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