Turn mat into a shadow-only receiver: the surface is invisible except where a
shadow is cast on it, where it appears in options.color (black by default).
Mirrors BJS BackgroundMaterial.shadowOnly. Requires receiveShadows on the mesh
and at least one shadow-casting light. Call on the material returned by
createPbrMaterial (or on the props before creating it).
Turn
matinto a shadow-only receiver: the surface is invisible except where a shadow is cast on it, where it appears inoptions.color(black by default). Mirrors BJSBackgroundMaterial.shadowOnly. RequiresreceiveShadowson the mesh and at least one shadow-casting light. Call on the material returned bycreatePbrMaterial(or on the props before creating it).