Character casts a shadow while standing inside a building's shadow (shadow-in-shadow double darkening) #19

Closed
opened 2026-11-18 11:19:32 +00:00 by vekien · 1 comment

Version: 2026.11.17-09b0d15 (Windows/amd64)
Server: server.catseyexi.com (Native loader)
Location: Southern San d'Oria (zone 230), Lion Square (M-6)
System: NVIDIA GeForce RTX 5070 Ti Laptop GPU (driver 32.0.16.1692), D3D12 backend.
Graphics config: shadows Medium (world 4096² ±180y, actor 2048² ±24y, 3x3 taps), AO Medium, MSAA 4x.

Description

When the character stands inside a building's shadow, they still cast their own sun shadow on the ground. The character's shadow appears as a darker silhouette inside the already-shadowed area (circled in the screenshot). That can't happen physically: the sun is already blocked there, so there's no direct light left for the character to block.

Possible cause

The log shows two separate shadow maps: one for the world (4096², ±180y) and one for actors (2048², ±24y). The two seem to be applied independently and their darkening stacked (multiplied/added), instead of combined as a single visibility term. Fix: take the combined shadow factor as min(worldShadow, actorShadow) (or sample both and treat the pixel as lit only if neither occludes), so an actor shadow inside world shadow adds no extra darkening.

Steps to reproduce

  1. Enable shadows.
  2. In daylight, stand in the shadow of a building (e.g. Lion Square, Southern San d'Oria).
  3. Your character's shadow is still drawn, darker, on the already-shadowed ground.

Log

[shadow] quality Medium: world 4096^2 (+-180y), actor 2048^2 (+-24y), 3x3 taps
[zone] 230 loaded: 2835 batches, 106462 collision tris (1607 ms)

Screenshot

shadow-in-shadow

**Version:** 2026.11.17-09b0d15 (Windows/amd64) **Server:** server.catseyexi.com (Native loader) **Location:** Southern San d'Oria (zone 230), Lion Square (M-6) **System:** NVIDIA GeForce RTX 5070 Ti Laptop GPU (driver 32.0.16.1692), D3D12 backend. **Graphics config:** shadows Medium (world 4096² ±180y, actor 2048² ±24y, 3x3 taps), AO Medium, MSAA 4x. ### Description When the character stands inside a building's shadow, they still cast their own sun shadow on the ground. The character's shadow appears as a darker silhouette *inside* the already-shadowed area (circled in the screenshot). That can't happen physically: the sun is already blocked there, so there's no direct light left for the character to block. ### Possible cause The log shows two separate shadow maps: one for the world (4096², ±180y) and one for actors (2048², ±24y). The two seem to be applied independently and their darkening stacked (multiplied/added), instead of combined as a single visibility term. Fix: take the combined shadow factor as `min(worldShadow, actorShadow)` (or sample both and treat the pixel as lit only if neither occludes), so an actor shadow inside world shadow adds no extra darkening. ### Steps to reproduce 1. Enable shadows. 2. In daylight, stand in the shadow of a building (e.g. Lion Square, Southern San d'Oria). 3. Your character's shadow is still drawn, darker, on the already-shadowed ground. ### Log ``` [shadow] quality Medium: world 4096^2 (+-180y), actor 2048^2 (+-24y), 3x3 taps [zone] 230 loaded: 2835 batches, 106462 collision tris (1607 ms) ``` ### Screenshot ![shadow-in-shadow](/attachments/5d7d4089-0e60-40cf-a35a-10aca744aed0)
Owner
Fixed in https://git.bangplays.games/Banggugyangu/Zantetsuken-Releases/releases/tag/11_18_01
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Banggugyangu/Zantetsuken-Releases#19
No description provided.