-
-
Notifications
You must be signed in to change notification settings - Fork 27
Shadows
To enable shadows:
- In the pipeline asset's
Shadows
section, setMode
toVsm
; - Ensure the
Directional
toggle inShadows/VSM
is enabled; - Ensure the main (directional) light on the scene is:
- enabled;
-
Mode
is set toRealtime
orMixed
; -
Shadow Type
is any mode other thanNo Shadows
.
📝 Note: this page describes the traditional approach for shadow maps. Toon RP also supports Variance Shadow Maps and Blob Shadows.
Shadow receivers use a ramp separate from the global when applying shadows.
Threshold
, Crisp Anti Aliased
, and Smoothness
control the shadow ramp.
Increasing Max Distance
improves the general draw distance for shadows. However, the larger the distance, the less detailed shadows are.
Distance Fade
controls how smooth should the shadows be cut off near the max distance.
A stylized pattern can be applied to shadows. The pattern is sampled using world space position. Tiling can be controlled via Pattern Scale
.
Example with pattern and scale (1, 0, 1):
Getting Started
Platform Support
Lighting and Shadows
- Global Ramp
- Shadows
- Variance Shadow Maps (VSM)
- Soft Shadows
- Additional Lights
- Additional Light Shadows
- Tiled Lighting (Forward+)
- Blob Shadows
- Fake Additional Lights
- Baked Lighting
Render Quality
Miscellaneous
Post-Processing
- Post-Processing Stack
- Bloom
- Inverted Hull Outline
- Screen-Space Outline
- SSAO
- Motion Blur
- Sharpen
- Light Scattering
Making Custom Shaders
Debugging