# Shadow quality demo cascade debug visualization and texel snapping. ```{raw} html ▶ Run in browser ``` **Tags:** `3d` Demonstrates: - Cascaded shadow maps with texel snapping (prevents edge swimming) - Debug cascade colouring: red=near, green=mid, blue=far - Runtime cascade count (1, 2, or 3) via WorldEnvironment Controls: D - Toggle cascade debug colour overlay 1 / 2 / 3 - Set active cascade count Escape - Quit Run: uv run python examples/features/3d/shadows.py ## Source ```{literalinclude} ../../examples/features/3d/shadows.py :language: python :linenos: ```