forge-cascaded-shadow-maps

Implement directional-light cascaded shadow maps with PCF soft shadows for SDL GPU projects.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-cascaded-shadow-maps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-cascaded-shadow-maps
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-cascaded-shadow-maps
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-cascaded-shadow-maps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add directional-light cascaded shadow maps (CSM) with 3x3 PCF soft shadows to improve shadow quality across large SDL GPU scenes.

Core Features & Use Cases

  • Cascaded shadow maps with PCF soft shadows for directional lighting in SDL GPU projects.
  • Per-cascade render passes with depth-only shadows and depth-bias to minimize shadow acne.
  • Use Case: Real-time scenes with a distant camera where high-resolution near-field shadows are required across large environments.

Quick Start

Configure your SDL GPU project to render cascaded shadow maps with 3x3 PCF shadows by wiring cascade splits, shadow textures, and per-cascade render passes.

Frequently Asked Questions about forge-cascaded-shadow-maps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement cascaded shadow maps for directional lights in SDL GPU?

Cascaded shadow maps for directional lights in SDL GPU are implemented using cascade splits, depth textures, shadow samplers, light-space transforms, and per-cascade render passes with depth bias to improve distant shadow quality.

What's the best way to improve distant shadow quality across large real-time graphics scenes?

Cascaded shadow maps with 3x3 PCF soft shadows improve distant shadow quality by dividing the view frustum into cascade splits, rendering high-resolution near-field shadows across expansive environments.

How do I fix shadow acne when rendering depth-only shadows in a real-time render pipeline?

Shadow acne in depth-only shadows is minimized by applying depth bias during per-cascade render passes, which offsets depth values to prevent surface self-shadowing artifacts in the render pipeline.

Does this CSM approach work with a distant camera requiring high-resolution near-field shadows?

Yes, this CSM approach targets real-time scenes with a distant camera by configuring cascade splits and per-cascade render passes to maintain high-resolution near-field shadows across large environments.

How does PCF soft shadow filtering work with shadow samplers in SDL GPU?

PCF soft shadow filtering works by sampling a 3x3 neighborhood around the target texel in depth textures using shadow samplers, averaging depth comparisons to soften shadow edges in the render pipeline.