As indicated earlier in this chapter, our game scenes can have numerous light sources, and we can enable or disable an object's ability to cast or receive shadows. We have shadows in the real world and it is important to consider, for our Unity games, what objects cast shadows and what objects receive shadows.
The following screenshot shows the Mesh Renderer
component of an object in the Inspector
panel. Let's review the key settings of this component:
Light Probes
: It can be set toBlend Probes
,Use Proxy Volume
, orOff
. You will most likely use the defaultBlend Probes
for simple Unity games.Reflection Probes
: This setting can be turned off or set toBlend Probes
,Blend Probes And Skybox
, orSimple
.Cast Shadows
: This setting can be set toOn
,Off
,Two-Sided
, orShadows Only
. The default isOn
, so you should disable this for all objects that do not need to cast shadows.Receive Shadows
: This setting is a toggle that tells Unity whether you want that object to receive...