Developer knowledge network · moderated exchange

UnreliableCode қауымдастығы

Әзірлеушілерді зерттеу, кері инженерия және кодтау қауымдастығы

Knowledge indexТірі
4Categories
919Threads
2.8KЖазбалар
Tutorial

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

graphics_pipeline_pro
DirectX / Vulkan Engineer
MEMBER
Өкіл: 172
Қосылу күні: Sep 2018
Хабарламалар: 10
Рахмет: 51
1 ай бұрын · 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
Өкіл: 176
Қосылу күні: Jan 2021
Хабарламалар: 8
Рахмет: 32
1 ай бұрын · 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
Өкіл: 105
Қосылу күні: Aug 2018
Хабарламалар: 52
Рахмет: 41
1 ай бұрын · Jun 27, 2026 7:04 AM
#3

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