#1159 Weather: glass roofs keep the rain and snow out #1168
No reviewers
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream!1168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "TheSlowly/Slipstream:weather-glass-roof-1159"
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?
Fixes #1159 (a closed glass dome let rain and snow through).
Cause: the weather roof map drew alpha-blend casters with the shadow alpha test's 0.5 cutoff, so any glass below half opacity counted as open sky.
Change: the map's blend bucket uses its own pipeline (a specialization constant in
clean_shadow_mask.frag) with a weather-only cutoff,RenderVKWeatherGlassAlphaCutoff(default 0.05, the same threshold as shadows and the avatar shelter maps). Glass roofs now shelter, while alpha-0 and near-invisible prims stay open. Alpha-mask foliage keeps its own cutoff, and the shadow passes are unchanged.Tested in-world: a glass dome at alpha 0.26 keeps the floor under it dry; 0.5 brings the old behaviour back.
Merged into main (rebased) as
dfb46dc975.Pull request closed