How can I keep volumetric shadows in objects that have shadow casting setting is set to 'Shadows Only'?
The volumetric light shadow capture system can’t work with Shadows Only option. Instead, you can use layers. Set the object to a custom layer (example, a layer named “Shadows Only”) and exclude that layer from the camera main culling mask but make sure that layer is included in the culling mask of the shadow camera in volumetric light inspector.
I encounter an error every time shadow occlusion is calculated if
OptimizeShadowCasters
is set to false. How can I resolve this issue?- Enable
OptimizeShadowCasters
: This setting optimizes the calculation process and can prevent the error from occurring. - Adjust the Shadow Culling Mask: Place the object with the problematic shader (e.g., water) on a separate layer and exclude this layer from the shadow culling mask. This can be done by:
- Creating a new layer specifically for the object with the problematic shader.
- Assigning the object to this new layer.
- Adjusting the shadow culling mask to exclude this new layer.
I have a question which is not covered in the guide...
Please use the Support Forum and post your question there. Our team will get back to you shortly.