1. If you don’t have a “Layer” for your large environment object yet, add a new layer (let’s say “Environment” layer) and assign it to the environment object. You can open “Tags and Layers Manager” by selecting “Edit > Project Settings > Tags and Layers” menu.
    InspectorLayers    InspectorSetLayer
  2. Add “Environment” layer to “Ignore Layers” of your projector object(s). If you don’t have any projector objects yet, import “Projectors” package and drag “Standard Assets/Projectors/Blob Shadow Projector” into your scene.
  3. Create an empty game object and attach one of the shadow receiver components.
The scripts of shadow receiver components are located in “FastShadowReceiver/Scripts/Receivers” folder.
  4. Assign a projector object to the shadow receiver component created at step 3.
  5. Assign “Invisible” material to MeshRenderer component of the game object created at step 3. “Invisible” material can be found in “FastShadowReceiver/Materials” folder. This step will be done automatically at step 4.
  6. Assign the large environment object to the shadow receiver:
    • as “target” property , if you created InfinitePlaneShadowReceiver at step 3.
    • as “MeshTransform” property, if you created MeshShadowReceiver at step 3.
    • set “Raycast Mask” to “Environment” layer, if you created RaycastPlaneShadowReceiver at step 3.

    For more details, see Setup Shadow Receiver section.

  7. If you created MeshShadowReceiver at step 3, you need to create a Mesh Tree, and set it to “Mesh Tree” property of MeshShadowReceiver component.
    If no “Mesh Tree” has been set, and “Mesh Transform” property is set as described in step 6, you can find “Create a new MeshTree” button.
    This button will open Create Mesh Tree Wizard. For more details, see Create a Mesh Tree section.
  8. Repeat steps from 3 to 6 for any projector objects which are not yet assigned to any shadow receiver objects.
  9. If you have multiple projectors, assign a unique layer to each shadow receiver object, and modify “Ignore Layers” property of each projector so that each shadow receiver can receive only the shadow from the projector assigned to it. For more details, please have a look at “MultiProjector – Plane” and “MultiProjector – Mesh” demo.


Leave a Reply

Your email address will not be published. Required fields are marked *

Anti Spam Code *