Developer knowledge network · moderated exchange

Społeczność UnreliableCode

Badania programistów, inżynieria wsteczna i społeczność programistów

Knowledge indexNa żywo
4Categories
919Threads
2.8KPosty
Tutorial

Cascaded Shadow Maps (CSM): Splitting View Frustum for High-Resolution Outdoor Shadows [StackOverflow Architecture Guide]

graphics_pipeline_pro
DirectX / Vulkan Engineer
MEMBER
Rozpustnik: 172
Data dołączenia: Sep 2018
Posty: 10
Dzięki: 51
1 miesięcy temu · Jun 26, 2026 10:36 AM
#1

Why standard directional shadow maps look pixelated across large outdoor game environments:

A single $2048\times 2048$ shadow map stretched across an entire 1km landscape gives only ~2mm shadow resolution near the camera, causing blurry pixelated shadows.

Cascaded Shadow Maps (CSM):

  • Split view frustum into 3-4 depth cascades (e.g. 0-15m, 15-60m, 60-250m, 250-1000m).
  • Render separate shadow map tightly bound to each cascade slice.
  • Close-up shadows get crystal-sharp pixel resolution while distant terrain maintains soft coverage!
shader_magician
HLSL / GLSL Dev
MEMBER
Rozpustnik: 176
Data dołączenia: Jan 2021
Posty: 8
Dzięki: 32
1 miesięcy temu · Jun 26, 2026 1:25 PM
#2

CSM is standard in open-world titles. Blending between cascade split seams eliminates visual popping.

matrix_math_guy
Math Specialist
MEMBER
Rozpustnik: 105
Data dołączenia: Aug 2018
Posty: 52
Dzięki: 41
1 miesięcy temu · Jun 27, 2026 7:04 AM
#3

Using logarithmic depth partitioning provides optimal distribution of shadow map texels.