* RM0: each App's meshes and images, CPU and GPU bytes, after every RAEA_MEM_MARKS mark (raea-sys-memtally); docs/render-memory.feature RM0-RM4
* RM1-RM10: halcyon r109's sequence from killed at 24-25 GB to a 7.8 GB peak (footprint 5.5 GB), the look within run-to-run noise
- RM1: materials' maps and Solari's traced meshes on the GPU only (RAEA_KEEP_CPU_ASSETS=1: the control)
- RM2: a sequence's first 3D engine let go before a second opens
- RM5: JS solids deduplicated by expression, their Manifolds in a two-generation cache (192 MB each); solid.free
- RM6: a map whose picture changes by frame is one part and one material, its picture swapped as frames show it
(raea-sys-material swapped.rs): the pool's 96 water maps were 96 meshes and 186 textures
- RM7: Manifold shapes welded into indexed meshes (4.65 corners a vertex in halcyon; RAEA_NO_WELD=1: the control);
a held frame settles to the same picture, boiling 0.30% against 0.38%
- the shape text kept out of the store and the Edit (the engine spawns from the program's rows)
- RM8: a BufferMesh of 64 KB or more kept on disk by its content (buffer:@NAME, raea's caches/buffers):
shape text 274 MB -> 11.8 MB
- RM9: material maps as BC7 with their mips (intel_tex_2), cached by content in raea's caches/maps, any size
resampled to whole blocks (RAEA_NO_BC=1: the control): GPU images 733 MB -> 282 MB
- RM10: raea-sys-contact's solids as bytes, a count and u16 surface points: 1.27 GB -> 0.37 GB mid-render
- memtally names the biggest GPU images; RAEA_MEM_MARKS prints the program's text by column and shape call
- tools/memprobe: memseq, heapwho/heapseq (malloc stack logging, holders.py), abenv/abseq/steadyab (A/B on one binary)
docs/render-memory.feature has each step's numbers and gates.
* raea-sys-memtally in tools/layers.toml: a system, as the layers gate asks
* Size: render-memory's eight over-limit crates and files allowed once at today's sizes (Shane 11-29, for 0.1.13): the folders hold other lanes' uncommitted GI/RT work, so they're split once that lands
* Fold render-memory's copies into what they copied (the dupes gate, 297/60 back to 293/57): one two-generation cache, raea_core_shape::Generations, for core/shape's meshes and runtime/calls' built Manifolds; swapped maps load their pictures with maps.rs's panel_picture; raea_io_home::write_whole for a file written whole or not at all (the BC7 maps first); spawn_sig(it, swapped) one function, its callers saying which; the store's spawn given its columns. Size allowances taken down to the folded sizes (solid.rs is back under 500)
* Split the five crates render-memory took past 2000 lines, each where it parts cleanly, so the next lane has room (the size and rask gates; the one-time allowance is gone):
- raea-core-tables (core/tables): a row's per-frame tables, from raea-sys-frame (re-exported there as tables)
- raea-runtime-ecs (runtime/ecs): raea/ecs on Bevy's ECS, from raea-runtime-calls (ecs.rs re-exports it)
- raea-sys-toon (systems/toon): toon surfaces and outlines, from raea-sys-material; its shaders keep the embedded path compositions name (raea_sys_material/toon.wesl)
- raea-render-plugins (engine/render/plugins): RaeaPlugins, from raea-render (engine.rs re-exports it as raea_plugins; the imports only it used are gone)
- raea-runtime-kinds (runtime/kinds): the rows of models, panels, decals, plates, fog, fire, splats, mesh sequences and grass, with placement and name_column, from raea-runtime-scene
maps.rs's inline and panel pictures move to maps/pictures.rs (re-exported, 422 lines left)
* Engine::open_in: a live engine (re)opened in its slot, the one there let go first (RM2 in one place, docs/render-memory.feature). raea-runtime-export's five opens go through it, so a fed render stepped again in the page's box keeps its AOVs as its first engine did; aov_on takes the engine in place. raea-runtime-export is back under its planned 2000 (LT1 and LX6 hold the rest)
* Drop the dependencies render-memory's splits left behind (cargo shear, CI's unused-dependencies gate): raea-render's eleven systems crates went with RaeaPlugins to raea-render-plugins, raea-runtime-calls's bevy with raea/ecs to raea-runtime-ecs, raea-sys-material's raea-core-shape with toon to raea-sys-toon. raea-render's cargo-shear ignore goes too: spawn.rs reads a mesh buffer through raea_core_shape::buffer_json now
---------
Co-authored-by: shinyobjectz <[email protected]>
io/trace's stats.rs: a stat channel is a RAEA_ variable's name without RAEA_ (bake_trace, trace, bevy_passes), on
when the composition chose it (native("stats.on", { channels }) at its top level), when RAEA_STATS lists it, or when
its variable is set, the override. The 51 reads of 24 trace and stat variables go through raea_io_trace::stat. Each
of Bevy's render passes (RenderDiagnosticsPlugin, on by bevy_passes) and PassTimer's go into the run's totals, with
the counters engine/draws and engine/updates; native("stats.read", {}) returns them, and a run that chose a channel
prints the table and keeps stats.json in its trace folder (docs/manual/reference/cli/traces.md).
tools/nobuild.sh stats checks it: every channel decided done reads through stat(); the scene choosing bevy_passes and
trace traces, reads 9 passes and 11 draws back on its last frame, prints the table and keeps stats.json; with nothing
chosen nothing prints; RAEA_TRACE=1 and RAEA_STATS give the same trace lines. 12 frames take 12 updates.
raea-render's lines stay as they were (NB4a's plugin choice folded to one line). native-calls.ts gains the two calls,
and bevy.app.*, which raea registers now that the macOS build links the plugin catalog.
The froxel grid filled a fog volume's box evenly (or thinning going up), so photo 5's column of steam showed as a lit rectangle. Two props shape the density inside the box: soft (0 to 1) ramps it in from every face over that share of the half-size with a smoothstep, and taper (0 to 1) narrows the box toward its floor, a plume widening as it climbs. froxel_volume.wesl's volume_weight is the one place the light pass, the hero pass and Solari's pass read a volume's density; FogThinning becomes FogShape {falloff, soft, taper}. Only the froxel grid draws them, as with falloff.
Checked on photo 5: the plume's density 2 with soft 0.8 and taper 0.7 changes the steam's region by 28% against the box; falloff 1 cuts the haze at the ceiling 4 times; volumes without the props render as before (the haze's regions unchanged to 0.01).
A part whose size changes each frame is a new shape each frame, and Shared kept a
strong handle to every one: the film held 234,945 meshes a minute in (450 MB of heap,
and their GPU buffers), nearly all for shapes no part had any more. The share now
sweeps what only it holds whenever it has doubled since the last sweep. It moves to its
own crate, raea-sys-share (runtime/scene3d re-exports it), since scene3d is at its
2,000 lines.
The copy machinery (a copy's markers, its bare spawn, a part's material components found by type path, a mesh's
copies with its materials cloned as handles or with a colour a copy over one TintMaterial, a model's scene copied
placement by placement with a shader cover's link) is its own crate, which knows no rows; runtime/scene3d's
instance.rs reads the rows and calls it. raea-runtime-scene3d is back to 2000 lines. Tests:
a_models_shaded_parts_are_copied_with_their_surface, a_models_part_with_no_material_is_refused (moved).
Each part's copies get the part's own material components as handles (instance.rs copy_scene, as a mesh row's
copies already did), so a model under a shader cover is instanced and still batches, and a shaded copy keeps the
link that makes it follow the standard material the rows animate. A toon or look surface still isn't instanced.
Tests: a_models_shaded_parts_are_copied_with_their_surface, a_models_part_with_no_material_is_refused.
A mesh row with `inst` refused every material but the standard one ("not toon, grid, wear or shadow-only"), so
a set drawn with raea-sys-procmat or raea-sys-wear surfaces (projects/gambit's interior kit: plaster, wood,
jute and brick, all procedural) had to draw one Mesh3d a placement. Now each copy gets the row's own
MeshMaterial3d<M>, whatever M is: found on the row by type path (each MaterialPlugin registers its
MeshMaterial3d's type) and cloned with an opt-in EntityCloner, so the copies share the handle and Bevy still
batches them. A colour a copy (inst_tint) still needs the standard surface and says so; a shader over the
copies is still refused, as before.
Checked: two unit tests (copies share a non-standard material; a mesh with none is refused), and a render of
nine chairs and sacks in the kit's procedural wood and jute as <Instances> against one Mesh3d a copy: RMSE
1.4e-5 (the installed raea refuses the same composition).
raea motion runs Kimodo on MLX on a Mac as before; on Linux and Windows it runs upstream Kimodo (commit e1c219c, Kimodo-SOMA-RP-v1, post_processing off) on PyTorch, CUDA when there is an NVIDIA GPU, else the CPU. Python hands back the sampler's raw features and raea's Rust decoder makes the clip, so both write one clip format (systems/kimodo torch.rs, torch/run.py). raea setup motion [--check] fetches or checks the MLX models on a Mac, and elsewhere makes a uv Python 3.11 environment and fetches the weights (Llama 3 from NousResearch's ungated copy, its files checked against Meta's SHA-256s, each repository pinned). Checked on the Mac: MLX unchanged, the torch path's Rust half on MLX's own features (same keys, root gap 1.1e-16 m), cargo check for macOS, Linux and Windows. Not yet run end to end on Linux or Windows (docs/character.feature CH15d says what is and isn't tested).
scene3d's shade_meshes: a mesh row waiting for its shader gets it after a live frame's or a fed render's rows too, not only when a model spawned (a shaded part with no model beside it drew its bare standard surface). docs/first-person.feature: the first-person hands, interactions and cutscenes spec (FP1-FP11).
three/webgpu's PostProcessing (RenderPipeline) draws one QuadMesh whose fragmentNode is the whole chain. sdk/r3f's stand-in renderers (renderer.ts for R3F, program.ts for a plain program) hand that quad to src/input/tsl-post.ts. It walks the graph for the pass(scene, camera) the chain starts from, which raea draws as the frame, and for the nodes the frame goes through, in order. Bloom, GTAO, depth of field, FXAA, SMAA (TRAA and TAAU as SMAA), SSAA and pixelation become raea's own effects. film, dotScreen, rgbShift, chromaticAberration, lut3D, sepia and bleach become FramePasses doing what their setup() builds (effects-tsl.ts). The output's tone mapping and three's exposure become raea's tone mapping and Grade exposure. post.ts reads them as it reads a composer's effects. The other display nodes and an Fn of the app's own are named once. kinds.ts TSL_POST names every post node three ships, and a test holds it to three's own list.
Bloom gains `additive` (the bloom_additive column; Bevy's Additive composite). three's UnrealBloom adds its glow on top, where Bevy's natural bloom takes the light from around it and darkened the rest of the frame. A TSL bloom is raea's additive Bloom at 4 times its strength.
systems/framepass: frame() read past the edge takes the frame's edge pixel, as a clamped texture does, never the tag row under the Viewport (a chromatic aberration drew a teal line along the foot). depth() and normal() clamp the same way.
COMPONENTS.FramePass and COMPONENTS.Fragment move into parts.tsx's table now that R3F22 has landed.
Tests: test/tsl-post.test.ts (a program's pipeline: the pass's scene drawn, bloom, film and ACES with exposure; an effect after renderOutput() runs after the tone mapping, sepia() known; a node with no counterpart named; every node three ships covered), runtime/look's an_additive_bloom_says_so_and_a_natural_one_doesnt, framepass's prelude test. The parity cases in-tslpost (bloom, 0.9737) and in-tslpost2 (sepia and chromatic aberration, 0.9233) in test/parity/tslpost.tsx; the full parity list of 36 passes unchanged. The guide's Drawn paragraph lists TSL PostProcessing, docs/r3f.feature R3F25's status says what's done and left, and the manual reference has Bloom's additive.
shader_advanced/deferred_raymarch (docs/control.feature FC2d) ports with a <GBufferPass> on the camera
(systems/phase gbuffer.rs): a shader file's fullscreen fragment writes Bevy's deferred G-buffer, the
lighting pass id and depth after the late deferred prepass, and its shadow entry writes every shadow view
the camera's lights draw, so Bevy's deferred lighting lights it and it casts shadows. It matches Bevy to
the pixel (SSIM 1.000000, 0 px off at frames 5, 10 and 30); the whole suite (147 ports) passes on pixels.
Three gaps closed on the way, each found by probing the shader's inputs on both sides:
- The pass sets the camera's viewport, as Bevy's own passes do. raea's target is w x (h + 1) (its tag
row), so a fullscreen triangle drawn without it stretched its uv over 721 rows: rays a pixel low at the
bottom.
- Camera3d sends its rotation, and the engine places the camera by it (rot_qx..qw, exact). It used to send
a look-at point the engine turned back into a rotation in f32, about a millionth of a radian off. Bevy's
lights do the same (their direction was also rounded to 1e-6).
- Transform.lookingAt computes in f32 as glam does (Dir3::new, cross, try_normalize,
Quat::from_rotation_axes), the same quaternion to the bit; glam.test.ts holds it to glam's own bits.
The port sets Bevy's shadow defaults in a <Shadows> (2048 texels, cascades to 150 m, the first to 10 m,
overlap 0.2), as the other shadowed ports do. Mutants (no shadow entry, the first cascade at 8 m, 7000 lux,
the cube moved 5 cm, the camera's target 1 cm up) are each thousands of pixels off.
Three of Bevy's shader_advanced examples now run as written, each through a general feature.
A compute writes a mesh (shader_advanced/compute_mesh). A <Compute file> binds each var<storage> its file declares:
either its own buffer, its first contents in the type's storage layout and kept from frame to frame, or a mesh's
vertex or index slab in Bevy's MeshAllocator, found by its part's name (systems/compute/src/slab.rs). A uniform
field given { start: NAME } or { end: NAME } is that mesh's range in the slab, counted in the array's elements, and
is packed each frame once the allocator has placed the mesh. The allocator's slabs carry STORAGE usage, set before
MeshAllocatorPlugin's finish makes the allocator, as the example's plugin sets it. A <BufferMesh> with indices and
normals is now Bevy's indexed Mesh, its index buffer kept, instead of flat triangles (systems/mesh/src/indexed.rs);
3d/vertex_colors, which takes that path, still passes. Every row with a name now gets a Bevy Name, not only bare
entities.
Your own phase item (shader_advanced/custom_phase_item). <PhaseItem> puts raea-sys-phase's PhaseItem and an Aabb on
an <Entity>. A new crate, systems/phase, queues it into each view's Opaque3d phase with a pipeline of its shader
file as written, drawing its own vertex buffer (its stride and attributes) and index buffer with its depth state,
as the example's queue_custom_phase_item does.
A frame pass as written (shader_advanced/custom_post_processing). A <FramePass file> binds its file's own @group(0)
declarations: each texture_2d<f32> is the frame (the one `frame` names) or an image, each sampler Bevy's default or
the one given, each var<uniform> its value (systems/framepass/src/written.rs). Its uniforms may change frame by
frame: like a compute's entry and bind, they are a keyed string column, and the pass repacks them when they change.
FramePass moves out of materials.tsx (at its 500-line limit) into 3d/framepass.tsx. The group(0) declaration parser
the compute and the pass share is raea-sys-shader's bindings::group0.
A camera on the Engine's target now draws a w x h Viewport of the w x (h + 1) tag-row target, as orthographic
cameras already did. A perspective camera had a sub view of the whole target, so a draw in clip space, such as the
phase item's triangle, mapped to 721 rows: its bottom edge landed 0.75 px low and the port passed at SSIM 0.9936 with
2355 pixels off. It is now pixel-exact. The whole suite was rerun with the change.
Results:
- compute_mesh passes at frames 5 and 10 (SSIM 0.999999, 2 pixels off at a 2% threshold). Eight mutants all fail the
bar: no dispatch, either range set to 0, indices written into the vertex slab, the compute's mesh unnamed, the
other cube's colour, no shadows, and the other cube moved.
- custom_phase_item passes at frames 5 and 10 with SSIM 1.0 and 0 pixels off. Mutants: the second attribute at
offset 12, a vertex given another colour, and the top vertex at y 0.9 all fail the bar; a vertex moved from 0.866 to
0.86 passes on SSIM (0.9953) but leaves 1556 pixels off, where the port leaves 0.
- custom_post_processing passes at frames 10, 30 and 60 (SSIM 0.99995, 0 pixels off). Mutants: no white clear colour
fails the bar; intensity times 4/3 (8100 pixels off), a slower turn (4256), a linear sampler (16) and sin(t) for
sin(sin(t)) (2964 at frame 60) pass on SSIM but leave pixels off. The pass before tone mapping draws the same
frame, as it should: the camera is not HDR, so Bevy tone-maps in the material shader and its tonemapping node is
skipped.
- After the change, the whole suite passes: 141 of 141 ported (two first-run misses rerun clean: standard_widgets
missed its replayed menu click on the Bevy side, automatic_instancing missed its frame-time bar under another load).
A <Compute file> compiles its shader file as written, binding its own @group(0) storage textures and uniforms
(systems/compute/src/written.rs). Each frame picks the entry point and which image each storage texture binds, as
a Bevy example's render-graph node picks its pipeline and bind group. Its images are render:NAME images in the
storage format the file declares, each with a sampler if one is given.
Strings can now change from frame to frame. A row column holds a number per frame, so a changing string is kept
as the list of values it takes plus a keyed index into it (raea-runtime-look's keyed_strings, read back with
raea-sys-frame's keyed). The changing-picture code for ImagePlane already worked this way and now uses the helper.
A Compute's entry and bind use it, and so does a Sprite's src: a Sprite can show a render:NAME image and switch
to another by name each frame.
The render-image registry (RenderImages) moves into raea-sys-frame, so the sprite system can look images up by
name. raea-runtime-plugins re-exports it.
A still renders only the frames it needs and their neighbours. When a scene has a compute that carries state
between frames (a file's images, or its own buffers), every frame up to the wanted one is now rendered, because
the GPU state can't be rebuilt from one frame.
Load checks every entry name and binding the run uses. A frame whose entry leaves a storage texture unbound is
logged and skips its dispatch.
shader/compute_shader_game_of_life passes at frames 10, 11, 30 and 60 with SSIM 1.0 and 0 pixels off. Frame 11
was added so each of the two images' samplers is drawn. Mutants are caught either by the bar or by the 2% pixel
probe: init a frame late, swapped bindings, alive colour, sprite parity, either image's sampler, clear colour,
scale, and one extra row of workgroups. The extra-row mutant passes SSIM at 0.9994; the probe finds 784 pixels off,
against 0 for the real port.
The fast path for placed rows grew raea-runtime-scene3d to 2010 lines. Clay is a material concern (every standard surface drawn grey and matte) and depends only on Bevy, so it moves to raea-sys-material; scene3d re-exports it, so every caller keeps its path.
shader/automatic_instancing: 65 536 cubes, one mesh and one Material, each with a MeshTag (a BevyComponent) its
vertex shader reads a texel by, moved in z every frame. The update was 103 ms against Bevy's 9: every moving row's
values were made into a map each frame. The timeline now records which columns move per row (Timeline::moving), and
a row only its placement moves has, once its other values are applied, its transform read straight from the frame's
columns (FrameRows::moves_only, placer, transform_by): 7.4 ms against Bevy's 8.3. The parity probe formatted a string
for every visible mesh each probed frame, in the next frame's measured time, on both sides; it now formats a size once.
Mutants: the tag off by one (SSIM 0.977) and the phase (0.397) fail the bar.
shader/pipeline_constants: a Material's `constants` are its fragment's pipeline-overridable constants (WGSL override),
set in its pipeline as the example's specialize pushes LEVELS; kept by hash so its key stays Copy (SpriteMaterial's
combined key is a packed struct). Its quads are pixel-exact; LEVELS + 1 and no constants both fail the bar. A Text2d
inside a layered Canvas3D was silently not drawn (the bar passed it at SSIM 0.9946); it now throws, saying to put it
after the Canvas3D.
shader/gpu_readback is excluded: it spawns no camera and draws no frame; its behaviour is the GPU results it reads back
and logs, the world check's, not a picture.
A <Material>'s `buffers` are its read-only storage buffers (var<storage, read> NAME: array<T(, N)>, up to two, at
OwnMaterial's 23 and 24), each laid out as WGSL stores its element type (own_live.rs storage; a vec3 takes 16 bytes).
Its uniforms and buffers may change from frame to frame: raea-runtime-look own_uniforms sends them as keyed
`own:uniforms` component rows from each frame they change, and own_live.rs patch packs them into the part's
Material and ShaderBuffers (a row that arrives before shade_rows puts the Material on waits on the part, Pending).
Parts whose spec is the same share one Material, as Bevy's examples share a handle: a varying spec carries its
track's hash, so parts share only when every frame's values match too (own.rs shared, OwnMade, cleared per load).
layout.rs's word encoding is shared by uniforms and buffers.
Port: shader/storage_buffer (SSIM 0.999999 at 30 and 60): 91 cubes with MeshTags (<BevyComponent
bevy_mesh::components::MeshTag>), the example's vertex and fragment shaders from its one file, its colour buffer
recomputed each frame as its update system does. Freezing the colours at frame 0 fails (97310 px off), as does
tagging every cube 0 (76718). The other shader ports rerun and pass.
raea/pbr's <Material> now draws as raea-sys-shader's OwnMaterial (own.rs), an `impl Material` whose bind group
takes any author's layout: the file's @group(MATERIAL_BIND_GROUP) bindings are renumbered into fixed slots in the
order the source declares them (8 uniforms of any type up to 256 bytes, packed in their declared types, a struct's
from { field: value }; 4 textures and their samplers), as the UiMaterial's are (ui_bind.rs rebind_in, generalized
to any group). `import super::NAME` reads NAME.wesl beside the file: the module is registered under an embedded
folder per source folder, which is the module path WESL resolves super:: to. alpha_mode and depth_bias are its
Material methods', cull_mode its specialize's (Back; null culls none), and `vertex` names a vertex shader for the
main pass. A shader's textures given as staticFile paths are now found as its fragment is.
Ports: shader/shader_material (SSIM 1.000000: its own bindings at 0-2, the relative import, AlphaMode::Blend; the
Opaque mutant fails at 36143 px off, and a cull_mode null mutant moves SSIM to 0.992), shader/shader_defs
(0.999999: its uniform a struct, IS_RED from defs), shader/shader_material_screenspace_texture (0.9989 at 10 and
60, max 12 grey off: view.viewport uv under the turning camera). animate_shader, extended_material and
ui/ui_material rerun and pass as before.
While models load, await_models now holds the active cameras off (raea-sys-post's views.rs). The render world still prepares meshes, textures and pipelines, but bins nothing. It turns them on before the first frame, so every view bins the whole scene into new phases in queue order. Turning views off after a draw was binned instead loses what Bevy extracts only on a change. And a morph mesh first seen by a view after loading would keep "no morph" for good: Bevy 0.20 gives it a descriptor only once its instance was collected, and collects an instance only when it changes. So views::on runs one update and then marks each morphed mesh's Mesh3d changed (bevy-ts morph drew its card unmorphed without that; the old loading updates collected it again by chance). An earlier try, updating only the main world while models load, broke the same case: messages the render world extracts by didn't reach it.
bench/room3d-repeat/check.sh renders room3d 8 times at frames where the seam ties and wants every run to match the first. The raea before this fails 5 of 7 runs; the raea with it passes. Five full renders (7200 frames each) hash the same. Frame 0 is pixel-identical to the raea before on room3d, bevy-parity many_foxes, bevy/model and bevy-ts morph. bench/live-3d is 13 of 13, and bevy-ts is 92 pass with 1 open (shader-character's body.glb, open before too).
fps, the full room3d render back to back, alternating: 124.3 and 109.7 fps before, 125.7 and 108.1 after. First-frame render, three each alternating: room3d 1.00, 0.66, 0.70 s before and 0.68, 0.68, 0.68 s after; many_foxes 1.26, 0.95, 0.95 s before and 0.96, 0.95, 0.94 s after.
<Camera3d> takes Bevy's Camera order, clear_color (ClearColorConfig: Default, None, Custom) and viewport (physical px). Every camera in a scene gets a camera row: the first is "cam", and each one after it is cam1, cam2 and so on (runtime/look camera.rs). Renders and live play spawn them all, and raea-sys-frame's camera_pass puts each row's order, clear and viewport on its Camera. Per-camera UI goes in a <Viewport> inside <UiTargetCamera>.
two_passes: 0.999025, 0 px off in render and live. split_screen: 0.998973, 1142 px off in render, 673 in live play. Mutation tests: a missing viewport, a shifted viewport, a moved camera and a changed justify_content fail the bar. The pixel probe catches the light angle, button width, padding, margin and plane size. Reversing the camera order is equivalent because the viewports don't overlap. In live play, extra cameras keep the place they had on the first frame.
What changes for authors: a mesh at opacity 1 draws opaque and writes depth, on every frame where it's at 1, even if it fades on other frames. Below 1 it blends. Before, a render made any mesh with an opacity column (one that faded at any point) a blended surface for its whole life, while live play blended only from the first frame below 1. A mesh whose alpha mode is given (alpha: blend, mask...), or a blended picture (a glyph over its atlas, a textured mesh that fades), keeps its own mode at 1.
bevy/volumetric-glass differed between the routes on frames 20-39, where its pane is at opacity 1 and the fixture says it "must draw as the opaque one" (frame 19). The live route did that. The program route drew the pane blended, so it wrote no depth: the froxel hero shaft was integrated to the wall behind it and then dimmed by the pane's full opacity, and the shaft in front of the pane was lost. systems/material maps.rs now spawns a mesh opaque at opacity 1, and runtime/scene3d sync_meshes and the toon sync switch Opaque and Blend both ways each frame. froxel_glass already drops a surface's fog copy once it stops blending.
Checks:
- volumetric-glass: all 90 frames equal between the routes. The program route's frames 20-39 changed and now equal frame 19; no other frame changed.
- bench/live-3d/check.sh adds it: 13/13 pass. bevy-ts: 92 pass, 1 open (shader-character's body.glb, open before too).
- Old vs new binary, program route, frame hashes: no change in broll (p26), bevy-parity mesh_ray_cast, texture, transparency_3d, bevy-ts alpha-mask, bevy/materials, bevy/studio, conformance layered-clear, react box3d. room3d isn't deterministic (two runs of the old binary differ on 147 frames); its one fade is a Decal, which this doesn't touch.
- The 1 to 0.99 edge (a scratch cube held at 1, then 0.99, 0.98 over a sphere): frame 9 to 10 changes as much as 10 to 11 (about 15 px, at most 4 levels), and the same on both routes, before and after.
- No golden reference fades a mesh.
volumetric-glass, program route, ms a frame before vs after, back to back: 7.3/7.6/7.5 vs 7.5/7.5/7.9.