Forum Discussion
ShivekXR
3 years agoExplorer
Bug report - Half transparent materials leak Passthrough layer over solid objects
I am kindly asking the community for the help and Meta staff to take care of this bug report or redirect me to the better place to submit the bug report. Possible duplicate of: https://communityfo...
markeahogan
3 years agoExplorer
The blend mode should be
Blend SrcAlpha OneMinusSrcAlpha, OneMinusDstAlpha One for alpha blend
Blend One OneMinusSrcAlpha, OneMinusDstAlpha One for premultiplied alpha
Only the separate alpha blend mode is really important here
Basically when blending the alpha channel, the dst alpha should only get more and more opaque, which is why the alpha dst blend is One. Then the src alpha can only fill up whatever transparency space not taken already on dst, so OneMinusDstAlpha
The passthrough is always blended with the game layer using premultiplied alpha, so one neat trick I've yet to find a use for is you can do additive blending between the passthrough and the game by writing 0 to alpha and whatever you want to RGB
RaptorMatt
3 years agoExpert Protege
markeahoganThank you so much for sharing this! Setting the blend mode to
Blend SrcAlpha OneMinusSrcAlpha, OneMinusDstAlpha Onefixed the passthrough transparent rendering bug for my own transparent materials. If the issue still exists for any default Unity transparent materials though, then Meta should see what they can do to fix it... I had to duplicate and modify their 'OculusHand' shader in order to properly render their 'stylized hand' model with no passthrough rendering bug.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 3 months ago