Is there already a solution for a transparent occluder material?

A transparent occluder can be achieved in Unity via the VR/SpatialMapping/Occlusion shader or in three.js like here javascript - three.js transparent object occlusion - Stack Overflow which is very useful for AR solutions. Is there already a way to export this behavior in Needle exporter, or will I have to recreate it in ShaderGraph?

Original Post on Discord

by user 474974683163394049

Yep, that is possible, good idea to ship it in core

It’s similar to the ShadowCatcher material, you can check out this sample for a starting point:
image.png

Basically for now you’d make a TS component and add it to objects you want to block, and the component changes the shader directly on the three side.

ok, thx for the swift reply :slightly_smiling_face:

by user 474974683163394049

Hey, is such a transparent occluder material included in the core package meanwhile, or do we have to build it on our own?

Hi, the shadowcatcher has an Occluder mode

Great, thanks for your feedback. I can confirm that it’s working.

1 Like

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.