[pr-fix][rendering][RAYTRACING] Bring back glass reflections with ray tracing on: the alpha resolve stays in EXACT64 when rays find something #71

Manually merged
TrustNo1 merged 2 commits from cafe/exact64-rt into main 2026-12-03 20:19:11 +00:00 AGit
Contributor

Refs c89739685 (it names CodeFloe issue 267; CodeFloe numbers are written without "#" here, since numbers restarted on this host)

Contributor role (optional)

  • Fluxer ID: Cafe#9189

What it changes

c89739685 took 34992f2b65a789a5 out of the DARNER_EXACT64 default in every mode, after CodeFloe issue 267 (phone screen and terrarium glass washed out). That report was with ray tracing off. With ray tracing on, leaving that program out removes the reflections from windows and other see-through surfaces.

Why it happens only with ray tracing off (my reading): there is nothing for the glass layer's rays to hit, so every ray misses and takes the sky. A terrarium indoors then reflects as if it stood outside. Same root as CodeFloe issue 113 (the opaque miss program, which f3826620d, CodeFloe PR 309, leaves out only with ray tracing off).

  • Ray tracing off: unchanged (71883e40620a567a+7168dd781ca7efb9).
  • Ray tracing software or hardware: DARNER_EXACT64=1 (all three).
  • A value set by hand (--set, settings file) is kept.

The comment called 34992f2b the SSR pre-pass; the shader census names it CS_TemporalResolve1_Alpha (7168dd781ca7efb9 is the SSR pre-pass). The comment is fixed.

How it was tested

  • Tested revision: 8633154fa (ca229e8d9 with main 1a5286a78 merged in; unit tests). In game, what this default gives with ray tracing on, set by hand (DARNER_EXACT64=1): picture on our bench tree with main of 12-03 morning, cost on our bench tree with main 4a92569fb merged (both carry a few switches of ours, off by default).
  • Commands and results: cargo test --release --locked -p darner --bin darner: 132 passed, 0 failed, including the new exact_programs_follow_ray_tracing (off / software / hardware / set by hand).
  • Gameplay: RTX 2080 Ti, Windows 10, Series S profile, 1440p, DLSS Performance, no frame generation, hardware ray tracing, Jason's house.
  • Before and after: without 34992f2b, no reflections on the house's windows (log: "shader does not translate; its pipelines' draws are dropped"). With it, the reflections are back (balcony, chairs, building and tree in the glass) and the phone screen looks right.
  • Cost: none measurable. Same build, the 30 s after the world shows, pipelines warm, two runs each: GPU time 48.0 and 48.8 ms a frame without it, 48.5 and 48.3 ms with it (19.9 against 19.7 fps, within run-to-run noise). In the opening top-down pan, a heavier view: 61.4/61.4 against 62.0/61.4 ms.
  • Shader wave sizes tested: 32 lanes (NVIDIA host).
  • Coverage gaps: ray tracing off not run (that path is unchanged); no AMD card.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none change this default. #14, #15 and #17 change the miss program, not this.
Refs c89739685 (it names CodeFloe issue 267; CodeFloe numbers are written without "#" here, since numbers restarted on this host) ## Contributor role (optional) - Fluxer ID: `Cafe#9189` ## What it changes `c89739685` took 34992f2b65a789a5 out of the `DARNER_EXACT64` default in every mode, after CodeFloe issue 267 (phone screen and terrarium glass washed out). That report was with ray tracing **off**. With ray tracing on, leaving that program out removes the reflections from windows and other see-through surfaces. Why it happens only with ray tracing off (my reading): there is nothing for the glass layer's rays to hit, so every ray misses and takes the sky. A terrarium indoors then reflects as if it stood outside. Same root as CodeFloe issue 113 (the opaque miss program, which f3826620d, CodeFloe PR 309, leaves out only with ray tracing off). - Ray tracing off: unchanged (`71883e40620a567a+7168dd781ca7efb9`). - Ray tracing software or hardware: `DARNER_EXACT64=1` (all three). - A value set by hand (`--set`, settings file) is kept. The comment called 34992f2b the SSR pre-pass; the shader census names it CS_TemporalResolve1_Alpha (7168dd781ca7efb9 is the SSR pre-pass). The comment is fixed. ## How it was tested - Tested revision: 8633154fa (ca229e8d9 with `main` 1a5286a78 merged in; unit tests). In game, what this default gives with ray tracing on, set by hand (`DARNER_EXACT64=1`): picture on our bench tree with main of 12-03 morning, cost on our bench tree with main 4a92569fb merged (both carry a few switches of ours, off by default). - Commands and results: `cargo test --release --locked -p darner --bin darner`: 132 passed, 0 failed, including the new `exact_programs_follow_ray_tracing` (off / software / hardware / set by hand). - Gameplay: RTX 2080 Ti, Windows 10, Series S profile, 1440p, DLSS Performance, no frame generation, hardware ray tracing, Jason's house. - Before and after: without 34992f2b, no reflections on the house's windows (log: "shader does not translate; its pipelines' draws are dropped"). With it, the reflections are back (balcony, chairs, building and tree in the glass) and the phone screen looks right. - Cost: none measurable. Same build, the 30 s after the world shows, pipelines warm, two runs each: GPU time 48.0 and 48.8 ms a frame without it, 48.5 and 48.3 ms with it (19.9 against 19.7 fps, within run-to-run noise). In the opening top-down pan, a heavier view: 61.4/61.4 against 62.0/61.4 ms. - Shader wave sizes tested: 32 lanes (NVIDIA host). - Coverage gaps: ray tracing off not run (that path is unchanged); no AMD card. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none change this default. #14, #15 and #17 change the miss program, not this.
c89739685 left 34992f2b65a789a5 (CS_TemporalResolve1_Alpha; the comment
called it the SSR pre-pass) out of the DARNER_EXACT64 default for every
mode after #267, which was ray tracing off: with nothing for the glass
layer's rays to hit, every ray misses and takes the sky (phone screens
and an indoor terrarium reflecting as if outside). With ray tracing on,
leaving it out took the reflections off windows and other see-through
surfaces (RTX 2080 Ti, hardware RT, house save: none without it, back
with DARNER_EXACT64=1, phone screen right).

The default now follows the RAY TRACING row: off keeps the two
programs; software or hardware folds all three. A value set by hand
stays.
# Conflicts:
#	apps/darner/src/play.rs
TrustNo1 manually merged commit 3a8214e8db into main 2026-12-03 20:19:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
TrustNo1/Darner!71
No description provided.