mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
Where a building breaks, by rules over the weathering bake's texels, in a crate of its own (raea-sys-damage 3): - cracks from the re-entrant corners of a wall's openings: a wall texel is beside one when, of eight probes across and up the wall, only one diagonal misses it; about half the corners crack (which ones by place, so a house cracks the same way every bake), each leaving away from the opening, steeper than 45 degrees, 0.35-1.25 m, wandering. causes3's alpha is each texel's distance to the nearest crack on its own wall. - the loss potential: how readily a coat comes off at the damp foot, where run-off soaks what the rain doesn't wash, at a knocked arris low down and along a crack (LOSS; raea/wear's test checks its copy against it). - debris on the walk under outdoor plaster with a high loss potential, dropped onto the walk from 0.2 m out (none where a plinth or step is below first, none from a wall the rain never reaches, a room's or a hollow model's back), each with its potential (spots.json "loss"); touch's old debris rule, which waited for this, is gone (raea-sys-touch 5). raea-sys-weathering 7 keys on raea-sys-damage's version. raea/wear draws it by neglect (years less what upkeep keeps up): render lost to the brick 2 cm behind it (drawn at the view's parallax) under a shadowed lip, paint to red-lead primer and the wood, enamel flaking to rusting iron, cracks no thinner than a pixel (stepped along brick's joints). What a lived-in house mends however poorly it is kept (panes, most slates, fallen render on its walk) goes only once it is left empty: abandonOf, neglect past ABANDON_FROM (0.85) by the house's own upkeep. wearSpots reads spots.json; wearDebris is the debris an age leaves lying; debug views crack and loss. WR9: weatherAt eases what lies on the surfaces (wet, snow, driven snow, frost) toward what the sky does, spell by spell, each at its own rate (WEATHER_RATES, ASSUMED: wet in about 3 minutes, dry over an hour), exactly, so any frame draws alone; WEAR_CONDITIONS are the eight conditions as weather. Tests: cargo test -p raea-sys-damage (5: an opening's four corners and no others, cracks along the wall, about half the corners crack, what loosens a coat, debris under outdoor plaster's foot and on the walk only), -p raea-sys-weathering (11), -p raea-sys-touch (9); bun test in sdk/wear (22).