Use the Live Shadow shader to apply real-time shadows to models. You can specify shadow intensity as well as the lights and objects that cast shadows in a scene.
Adjust the Live Shadow shader settings and apply or append the Live Shadow shader to the plane.
When you apply the Live Shadow shader to your plane, this new layer of real-time shadows replaces the selected plane’s texture, material, and other shaders. The areas of your plane that are without shadows become transparent.
When you append the Live Shadow shader to a plane, a layer of real-time shadows generates on top of the shaders already present on the plane. Use the Append option when you want to retain the selected plane’s material, textures, or previously created shaders.
The Shadow Type menu lets you select from five different kinds of shadow:
Shadow type | Effect |
---|---|
Planar Shadow | The default shadow setting. Use this shadow type to create darkened shadow areas only on planar surfaces. |
Projective Shadow | Uses a texture projection to create a shadow. Like the Planar shadow, it darkens the shadowed areas, but you can apply this shadow to non-planar surfaces. |
Projective Light Map | Uses a texture projection as a shadow, like the Projective Shadow, but instead of darkening the shadow area, it remains the same and the areas hit by light are brightened. The Projective Light Map can be applied to non-planar surfaces. |
Projective Z Shadow | Similar to the Projective Shadow, except that it uses a boolean algorithm to create a self-shadow. This shadow does not work with translucent objects. |
Projective Z Light Map | Similar to the Projective Light Map except that it uses a boolean algorithm to create a self-shadow. |
The Shadow Intensity slider lets you manipulate the darkness of shadows cast by a selected object. The default intensity is 100%.
The Shadow Intensity affects the intensity of all shadows created in the Live Shadow shader because shadow intensity is a global value. The strength of a shadow is also affected by the Light Intensity option in the Lights settings. Light Intensity is a local value specified for each individual light.
The Shadow Z Offset field is available only when the Shadow Type is set to Projective Z Shadow or Projective Z Light Map.
The Shadow Z Offset field lets you specify the offset of the Live Shadow shader’s plane from the original selected plane. It alters the direction in which the object’s shadow falls on the plane.
This is useful when two planes, objects, or shaders are too close to each other and there is a conflict between the two locations.
The Local (Per object shadow) option is available only when the Shadow Type is set to Projective Shadow or Projective Light Map.
Activate the Local (Per object shadow) option to create an accurate projection of a shadow for each object. This allows for more precision but creates a slower display.
If you disable the Local (Per object shadow) option, all the shadows cast are combined into one large projection. This method is less accurate but does not slow down the display, as one shadow is created instead of many.
The Use Gobo option is available only when the Shadow Type is set to Projective Shadow or Projective Light Map.
Activate the Use Gobo option if you want the gobo to be included in the shadow map calculation. See Attaching a gobo to a spot light for more on Gobos.
The Framing Type menu is available only when the Shadow Type is set to Projective Shadow or Projective Light Map.
Use the Framing Type menu to select the shadow calculation method.
Select Shadow Receiver to base the shadow calculation on the size of the Shadow Receiver.
Select Shadow Caster to base the shadow calculation on the size of the Shadow Caster.
Alt-drag any lights in your scene that you want to produce shadows into the Lights Producing Shadows field. You can also click the Lights Producing Shadows button next to the field to display the Asset list, where you can choose from the lights in your scene.
The Lights Producing Shadows area lists all the lights in your scene that produce shadows. If you want a light to produce shadows on a plane that uses the Live Shadow shader, select and Alt-drag each light into this list.
Alt-drag any models in your scene that you want to produce shadows into the Models Casting Shadows field. You can also click the Models Casting Shadows button next to the field to display the Asset list, where you can choose from the models in your scene.
The Models Casting Shadows area lists all the objects in a scene that cast shadows. If you want an object to cast shadows on a plane that uses the Live Shadow shader, select and Alt-drag each object into this list.