WIP: Reflections: the specular fill is off while the rays are found (DARNER_AMBIENT_SPECULAR_FILL, off by default) #460
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!460
Loading…
Reference in a new issue
No description provided.
Delete branch "Jesper-A/Darner:up-specular-fill-rays-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #17
Contributor role (optional)
What it changes
The
!rays_found()gate and the dropped duplicate half are ported from advxrsary's fork (commit dd8979582, via our branch pr6-specular-fill); the review point comes from TrustNo1 on #17.Follow-up to #17 (merged at
2ecdc8714). It answers the review of #17 that main still lacks: #17 (comment). It is a new PR because #17 is merged. It usesRefs, notFixes: the reviewer's third point (an in-game A/B of the floor grain against #14) is not part of this.DARNER_AMBIENT_SPECULAR_FILL=1fills after every miss dispatch, also with hardware or software ray tracing, where the miss program writes the real sky of the rays that found nothing. The fill would give those the light around, without a direction, which would flatten glass that faces the sky. This is the reviewer's point; read from the code (fill_asked()on main has no ray test), not run in game. Also, main'ssky_miss_left_outstill has the "program runs" half forfill_asked(), which the review said duplicates #14's.fill_asked()(crates/darner-gpu/src/ambient.rs) is also false whencrate::pipeline::rays_found()is true. With the switch off or no reflection estimate, nothing changes.sky_miss_left_out(crates/darner-gpu/src/draw.rs) loses its|| fill_asked()half. With ray tracing off, the opaque layer's miss program now runs only underDARNER_RAYMISS_ESTIMATED=1(with the reflection estimate on), as #14 does. With the rays found,miss_left_outreturns false and the program runs anyway. SoDARNER_AMBIENT_SPECULAR_FILL=1alone fills only the layers whose program already runs; for the opaque layer, both switches are needed. This is a change for anyone who set only the fill switch.fill_askedanddocs/findings.mdsay so: the opaque layer needsDARNER_RAYMISS_ESTIMATED=1, and the fill is off while the rays are found.Merge check: this branch is on main
47d21cd3b. Main is nowd91d8e4d6.git merge-tree --write-tree trustno1/main <branch>gives a clean tree, no conflicts.How it was tested
up-specular-fill-rays-gate@9f555f30b, based on main47d21cd3b.-p darner-gpu; the three workspace gates were not run):cargo test -p darner-gpu --libwith the filtersambient(16 passed) anddraw(58 passed);cargo clippy -p darner-gpu -- -D warnings, plain and with--all-features, clean.cargo xtask policythrough the pre-commit hook: ok.--all-features) andcargo test --workspace --locked. There is no CI.WIP:comes off: with hardware or software RT on and the fill switch on, sky-facing glass keeps the real sky; with RT off and both switches on, the shimmer of old pictures is still gone.Spec dependence
Checklist
main: the ray gate on the fill, with the duplicate half and the text that goes with it.docs/asset-policy.md. (Code and text only;cargo xtask policyok on the commit through the pre-commit hook.)Checked for overlap
crates/darner-gpu/src/ambient.rs(Wine tests). #14 and #17, which this follows, are merged. Several open PRs touchdraw.rs(#454, #431, #397, #394, #326, #187, #143, #57, #48); I did not compare hunks. None is about the specular fill.This change was made with AI assistance (Claude Code).
9f555f30b2to626001a7f1Closing this old-engine PR because post-merge replaced the code it changes:
ambient.rsis gone, and host ray tracing builds real structures (rt.rs).Written with AI assistance (Claude Code).
Reopened: Main is the default branch again, so the close note above no longer applies.
Written with AI assistance (Claude Code).
WIP: [pr-fix][rendering][lighting] Reflections: the specular fill is off while the rays are found (DARNER_AMBIENT_SPECULAR_FILL, off by default)to WIP: Reflections: the specular fill is off while the rays are found (DARNER_AMBIENT_SPECULAR_FILL, off by default)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.