|What is this asset for?
|Fast Shadow Receiver is an asset for optimizing shadow rendering performance. It works with Unity’s standard shadows, i.e. shadow-map and blob shadow projectors, Fast Shadow Receiver does not provide any new techniques which can generate some fantastic shadows. What you can do for shadows with this asset is same as what you can do with Unity’s standard shadows. It just improves the rendering speed.
Unity’s projector is not only for the shadows, it is also available for projecting lights and bullet marks, and Fast Shadow Receiver can be used for optimizing these projections as well. Additionally, Fast Shadow Receiver provides a shader which can project light and shadows at the same time. As a result, you can have spot light shadows like this demo.
Fast Shadow Receiver asset also includes a good example of bullet marks projection. It is really effective and fast. See also Q8. Is it possible to use Mesh Tree without Mesh Shadow Receiver?
|Is this asset helpful for my project?
|If you are seeking for a new technique of shadows other than Unity’s standard shadows, Fast Shadow Receiver might not be helpful (see also Q1. What is this asset for?).
If you are already using Unity’s standard shadows (especially, blob shadow projectors), and you want to improve frame rate of your application, Fast Shadow Receiver can be helpful. However, if the bottleneck of the performance is CPU, Fast Shadow Receiver cannot alleviate it. You can check if the bottleneck is CPU or GPU by using Profiler which is now available even on Unity 5 Personal edition.
|Can this asset work on any mobile devices?
|Yes. Fast Shadow Receiver itself can work on any devices. However, shadow-map is not available on some mobile devices. If you are seeking for good shadows available on mobile devices, I recommend you to use blob shadow projector. You can try it without Fast Shadow Receiver asset, and if you are satisfied with the quality of the shadow, try our asset. Fast Shadow Receiver can improve the performance without changing the quality (see also Q1. What is this asset for?).
If you are not familiar with blob shadow projector, please refer to Unity Manual.
|Can I use this asset with a script language other than C#?
|Yes, but you might need to put Fast Shadow Receiver scripts in a special folder, that is, ‘Plugins’ folder or ‘Standard Assets’ folder (see also Unity Manual).
In Unity 5, you can put the root folder of Fast Shadow Receiver into a special folder. However, it will cause a compiler error in Unity 4.6. If you got a compiler error, just move the folders in FastShadowReceiver/Scripts folder except FastShadowReceiver/Scripts/Editor.
|Can this asset generate dynamic shadows, i.e. shadows for skinned characters?
|Fast Shadow Receiver does not provide new technique for generating shadows. It just work with Unity’s standard shadows (see also Q1. What is this asset for?). So, if you use shadow-map, you can generate dynamic shadows with this asset.
If you are targeting mobile platform, you might not want to use shadow-map. In this case, please try Dynamic Shadow Projector. It can work with Fast Shadow Receiver.
|I got flickering shadows. How can I fix it?
|From version 1.4.0, Mesh Tree has 2 parameters for the flickering problem, ‘Scaled Offset’ and ‘Fixed Offset’. You can try ‘Scaled Offset’=1, ‘Fixed Offset’=0 first, and if you still have flickering, increase the values of these parameters. For more details, please refer to Create a Mesh Tree.
Also, you can adjust Offset parameters in shader files used by projector materials. Usually, projector shader has ‘Offset -1, -1’. You can change this parameter like ‘Offset -1, -10’. Only the second parameter has to be changed. From version 1.4.1, Offset parameters in the shaders provided with Fast Shadow Receiver can be adjusted in material editor.
|Can this asset cast shadows on dynamic objects?
|Yes, Fast Shadow Receiver just replaces the large environment objects (supposed to be static) with shadow receivers. You can still cast shadows on other objects as usual. If those objects are not so big, they will not make a large impact on shadow rendering performance.
However, what if the large environment objects are dynamic? Well, it is difficult for Fast Shadow Receiver asset to handle these objects. One possible solution is, build a mesh tree for the dynamic object at runtime. Because it takes long time to build a mesh tree, this solution is applicable only for dynamically created objects which are never changed after the creation. For more details, see Create a Mesh Tree.
If the environment objects are dynamically loaded, you can use multiple Mesh Shadow Receivers. Create a mesh tree for each part of the environment, and when the part is loaded, use the mesh tree with a Mesh Shadow Receiver. You can use Projector Manager to handle the multiple Mesh Shadow Receivers. Please refer to Setup Projector Manager.
|Is it possible to use Mesh Tree without Mesh Shadow Receiver?
|Yes, Mesh Tree can work without Mesh Shadow Receivers. It can be used for picking up polygons which intersect with a region enclosed by planes(e.g. view frustum).
Bullet Marks is a good example of this usage. You can find the source code in FastShadowReceiver/Demo/Scripts/BulletMarkReceiver.cs.
|How can I use Fast Shadow Receiver with Dynamic Shadow Projector?
|If you are already using Dynamic Shadow Projector, you have projectors in your scene. So, you just need to follow the steps in Setup Projector Manager.