Weather occlusion: untilted heightfield + per-drop direction march (rain shadow follows the actual rain) #1198
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#1198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Weather occlusion today is a tilted top-down depth map: drawn along the slow mean wind and re-drawn only when that mean turns more than 2.5 degrees. The drops fly with the current wind (gusts, per-drop speed), so the rain shadow does not follow the rain: with gusts, or the wind reversing, the shadow points the wrong way. Nearly every #1145 leak also came from the tilt:
Decided direction (deferred for now; what shipped on dev is good enough for the moment).
Design: one untilted heightfield + a march along each consumer's own direction
clean_weather_sim.comp): march along the drop's own velocity (gusts included), so the shadow follows the actual rain per drop and per frame.clean_weather_surface.glsl): march along the current precipitation direction, with the PCF softening at the end (budget about the current 4-tap disc x gather).clean_weather_runoff.comp): outlets on the untilted heightfield are real eaves (no false ridge edges). Streams and drips check their own falling path with the same march.ssr.weather[7].zw); unify with the shared helper.mTilt,kMaxTiltDeg,kTiltStepDeg, the per-tilt re-render), the sheared projection and parallelepiped cull planes, the camera / ground column centring for the near cascade (an untilted map centres on the camera), the slope-step and 3x3-max workarounds, the outlet cover probe, and the drip roof test.Trade-offs
Validation
RenderVKWeatherOcclDebug) swings with the rain immediately.Related: #1145, #1037, #783.