Skip to content

Commit 3151ea7

Browse files
authored
Update lights_and_shadows.rst to mention the increased drawcall by enabling shadow
1 parent 43f0195 commit 3151ea7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tutorials/3d/lights_and_shadows.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,12 @@ receive low-resolution shadows that may appear blocky.
201201
To fix this, a technique named *Parallel Split Shadow Maps* (PSSM) is used.
202202
This splits the view frustum in 2 or 4 areas. Each area gets its own shadow map.
203203
This allows small areas close to the viewer to have the same shadow resolution
204-
as a huge, far-away area.
204+
as a huge, far-away area. When shadows are enabled for DirectionalLight3D, the
205+
default shadow mode is PSSM with 4 splits. In scenarios where an object is large
206+
enough to appear in all four splits, it results in increased draw calls. Specifically,
207+
such an object will be rendered five times in total: once for each of the four shadow
208+
splits and once for the final scene rendering. This can impact performance, understanding
209+
this behavior is important for optimizing your scene and managing performance expectations.
205210

206211
.. image:: img/lights_and_shadows_pssm_explained.webp
207212

0 commit comments

Comments
 (0)