Add D3D12 medium temporal identity

This commit is contained in:
Meta Vens 2026-05-09 17:20:36 +01:00
commit 408eddc024
6 changed files with 57 additions and 10 deletions

View file

@ -48,7 +48,11 @@ has feature parity.
metadata, and control targets, with previous-camera reprojection and
field/travel/normal/color/coverage/medium validation for opaque current scene
hits. Debug mode `3` shows history age and mode `4` shows history weight.
Grid/transparent-specific temporal reconstruction is still pending.
Medium-only pixels use a density-weighted ray centroid as their temporal
anchor and a `FIELD_ID_MEDIUM` identity, with continuity weighted by medium
opacity and coverage rather than surface normals. Grid/transparent
contributions therefore get history through the medium path without becoming
fake alpha surfaces.
- Resize waits for the GPU, releases swapchain-dependent resources, rebuilds
static shader/RTV descriptor arenas, then recreates backbuffer views and
dependent render targets. Descriptor exhaustion on resize is no longer a

View file

@ -98,7 +98,10 @@ now writes ping-pong history color, metadata, and control targets and validates
opaque history with previous-camera reprojection plus field, travel, normal,
neighborhood color, coverage, and medium-continuity checks. Debug modes `3` and
`4` show history age and weight. Grid/transparent-specific reconstruction and
overlay/debug UI still need to move.
overlay/debug UI still need to move. Medium-only pixels already use a
density-weighted ray centroid and `FIELD_ID_MEDIUM`, so transparent Grid and fog
contribution can accumulate through the medium history path without inventing a
single alpha-surface hit.
The shader far distance is frame-derived, not a fixed constant. C# sends the
distance from the camera to the Grid origin plus the Grid radius, which matches