Main's Resources Updater replaces the shelf's own resource.update and
resource.reload: the shelf menu's Reload and the refresh popup's
updates now run main's resource.status and resource.update, and Show in
reads the project's saved source path. A renamed image keeps its source
record, so it still follows its file.
Preserve Resources Updater links and bake provenance when replacing or clearing mesh maps. Keep unrelated maps on unchanged UV atlases, discard partial results from failed workers, and reject overflowing texture-set indices.
Track vertex colors, part assignments, tangent frames and the packed file used by material-color bakes. Share the common source fingerprint across each task's selected maps. Add reimport, cancellation and atlas regressions, update the control protocol, and clarify the affected code.
Each texture set can turn on Auto-rebake for one mesh map (bake.autoRebake,
saved with the project; older projects have none). In Bake mode the app
rebakes that map alone in the background once what it is baked from has
stopped changing for half a second; a change during that bake cancels it
and the newest settings bake instead. Only a failed rebake makes a toast.
Each bake records, per map, fingerprints of the low poly geometry, the
high poly and cage files, the settings every map shares (with the UV
tiles baked) and the map's own settings, taken when the set's bake
starts. A map whose inputs differ now is out of date, with what changed;
project.inspect lists those per texture set as outOfDate.
The record is saved with the project and left out when empty, so
projects saved before it open unchanged and their maps never show out of
date. Imported maps keep no record either.
Merge main's IOR reflectance setting alongside resource source tracking.
Preserve both archive fields, integration test modules, and protocol
sections, along with the approved image-link, preview, and export repairs.
Track IOR-related display changes in the save revision and preserve the exact legacy reflectance scale at IOR 1.5. Improve the shader checkbox outline and cover its contrast and keyboard behavior.
Reuse wrapped CPU trace coordinates, shorten tracer staging lifetimes, and avoid per-set template channel ID allocations. Document the separate glass-interface Fresnel calculation.
Verified with local workspace gate coverage, affected release suites, software rendering, and the shader rail snapshot.
Conflicts resolved:
- crates/engine/tests/it/main.rs, crates/ui-egui/tests/it/main.rs: kept both
test modules (rebuilt_uv_layout, resource_updater; resources_updater,
sample_project) in name order.
- crates/ui-egui/src/lib.rs: Toast keeps main's announce field and this
branch's action field; both constructors set both.
- docs/control-protocol.md: main's ui.menu.invoke and Open Sample Project
rows, with this branch's note that the Resources Updater button is enabled
while a project is open.
Resolves docking.rs (the second Assets panel follows main's Location::new and hidden list), property_sheet/mod.rs and thumbs.rs (both sides kept), moves the panes edge to main's Axis and ResizeHandle delta, and installs the headless framework in the new Assets tests' harnesses as main's tests now do.
The file an image was imported from is kept by the image's bytes instead of its name, so an undo that brings back a removed image reloads it from its own file, not from a later file that took its name. A rename now also points a material effect's link package and cooked outputs at the new name.
Integrate main's dialog and bake-state changes. Reject inconsistent saved layouts at archive and session boundaries, and preserve vertex splits between independently packed materials.
Stream UV coordinates in bounded batches, transfer stored mesh bytes on successful reopen or reimport, and skip import reports that those callers discard. Set the archive version on the owned save snapshot to avoid copying the layer graph twice.
Cover material boundaries, malformed snapshots, locked coordinates and keyboard activation. Update the format and command documentation.
The Name row of a project image's menu is a field: resource.rename moves
the image and every layer, effect, stored path, environment and tool
reference to it in one undo step, and refuses rather than leave a
reference behind. Reload (resource.reload) reads the image again from
the file it was imported from in this session; it is greyed, with the
reason, for images imported before. Undo and redo decode a resource
again when the step changed its bytes.
Resolve Micro Height against the requested draw and current atlas layout. Invalidate whole-map fields after geometry edits, reuse admitted fields across tiles, and stop rust runoff at gaps between UV islands.
Render configured preview inputs, cancel evicted image requests, and clear stale previews and point picks when the project changes. Reduce temporary curvature fields and repeated occlusion sampling work.
Preserve generator IDs and saved values while updating picker wording. Consolidate generator regression tests and credit the Nightly icon set inherited from main.
Remember file verdicts per size and time so an unchanged file is read
once; recheck the open window at most twice a second; outdated rows
first. Record image files from PBR folder, MaterialX and mesh map
imports too, and resample an imported mesh map from its changed file
while it still holds that file's pixels. Relink only image resources;
decode updated bytes the way undo and reopening do. Notices carry their
project and are reset when another project opens, which is checked once.
Escape closes the window only while it has the keyboard. Keep the
reference's Shelf line and show the file on its own line. A dedicated
automation refusal message, translated status labels, tempfile in tests.
MicroDetails.earlier marks a migrated {anchor, amount}: an earlier-model
generator adds the anchor's height times the amount to its signal as #395
did; microAnchor/microAmount keep that reading on the earlier model, and
any Micro Details control moves the generator onto the reference's
controls and the anchor's curvature.
- Partner validation skips the edited sets and is set apart by blank lines
- A drag whose pointer left the window starts a new line on its return
- Tests for a legacy preset on synced sets and for each sync source rule
- Automatic cage: coincident vertices of different mesh-name groups keep separate distances
- A sync edit fails, changing no set, when a partner's merged settings would be invalid
- A high poly read during a paint stroke is added once the stroke ends, so its cancel or undo keeps it
- Quick bake and the map preview read the low poly's colours for the requested map even when it is unchecked
- The set picker's differing-values note compares with the set bake.sync will take settings from
- Map thumbnails redraw when the UV tiles' scales change
- Checkbox drags start on the primary button only and reach rows crossed between two frames
- A long texture set name or folder is cut to fit its row
- Map preview tests require a new picture, not just a missing one
Image resources imported from a file remember its path and modification
time. resource.status lists each resource as outdated, missing, up to date
or without a file; resource.update reads changed files again and
resource.relink points a resource at another file, each as one undo step
that recomposites every layer using the resource. Undo and redo drop
pixels decoded from bytes they replace under the same name.
The shelf's Resources Updater button opens a window with the project's
resources (outdated first), status and name filters, Update, Select new
resource, Show in folder, Refresh and Update All. When the app gets the
focus back after files changed, a notice offers to update them.
Automation refuses the three commands, since they read host paths the
project names.
A project with rebuilt mesh UVs now stores the UV of every triangle
corner in uv_layout.bin. Reopening and reimporting the project's own
mesh apply that layout instead of running the unwrapper again, so a
later unwrapper change cannot move saved paint. A format 4 project
with rebuilt UVs but no valid layout is refused.
A new kind with the reference's controls: Seed, Checker Color Mode (Uniform, or Random per UV island), Checker Color, Checker Grid Tile, Checker Grid Opacity, UV Borders Color and UV Borders Width. Fitted to the reference's color captures: four checker squares per grid tile, dark squares a shade of the light color; minor grid lines every quarter square and major ones on the square edges, each layer laid over the last at the grid opacity; texels within the border width (0.2 is 3 texels at 2K) of an island's edge take the border color; random mode gives each island its own light color; the mask reads the mean of the sRGB-encoded channels, as the reference does. On the test gun 99.9% of texels match the reference within 1/255, at the default and with the grid off (the rest lie on seams where two islands touch in UV, which coverage alone can't tell apart). Lines and borders test a texel's whole footprint, so they stay visible below 2K. Commands only.
A new kind with the reference's controls: Seed and Color Source Mode (Random, or Custom Gradient with its colors). Each UV island (triangles joined across shared UV edges, as polygon fill groups them) gets a seeded random color, or the gradient's color at a random point, and the mask reads the mean of its channels. The reference's random numbers are its own, so islands differ in value but not in kind: on the test gun every island is one flat value in both, with island means spread alike (0.52 ± 0.16 against the reference's 0.50 ± 0.15). As a mask it is gray; a colored fill would need generators in content stacks. Generator maps now hold one whole-map field for UV Border Distance, Dripping Rust and UV Random Color. Commands only.
A new kind with the reference's controls: Rust Spreading, Rust Contrast, Spreading Smoothness, Drips Intensity, Drips Smoothness, Drips Samples Amount, Position axis, Seed and Invert. Fitted to the reference: the rust rises with the occlusion, is blurred by the spreading smoothness, and each texel then takes the most rust found uphill along the chosen axis of the mesh's bounds over the samples, fading with distance (93 texels at 2K at intensity 1), blurred by the drips smoothness and scanned by spreading and contrast (spreading 0 and 1 are exactly black and white, as in the reference). The reference's grunge is not reproduced: the Dirt grunge breaks the rust up at the measured strength instead, so the look is close in level but not texel for texel (correlation 0.55 on the test gun, versus about 0.75 for the fitted model with its noise averaged out). The field is built once per layout, occlusion map and setting, with the UV Border Distance gradient's cache and blur now shared in one module. Commands only; no replaceable inputs yet (it reads the baked occlusion and the mesh's bounds whole).
Saved values are brought into range when read (a hand-edited project's infinite smoothness or huge AO radius no longer reaches the blurs and occlusion search), with tests. The UV Border Distance gradient is built once before tiles composite, not by every tile at once; its cache key adds the g-buffer's address and a denser coverage fingerprint, and its Smoothness blur follows each UV tile's own resolution. The micro and border caches keep at most 256 MB besides the newest entry. A generator's own controls are resolved once per plan instead of per texel; project.inspect shows them. Docs say which space the 3D kinds' points live in (the bounds scaled evenly, like the reference's position map) and that an empty micro slot reads a flat height.
Grayscale Conversion is a new kind with the reference's controls: an image (effect.set input: image; an empty slot reads black) repeated Tile times across the UV square and turned by Rotation about its centre, made gray by one of the eight conversions Use Texture already has, then Balance, Contrast and Invert like the global controls. Safe Rotation turns in quarter turns only so the image keeps tiling; that rule is inferred, as the reference captures had no image plugged in. Its image counts as a used resource.
3D Distance, 3D Linear Gradient, UV Border Distance and Grayscale Conversion now keep their controls in one boxed KindControls field (one variant per kind) instead of a field each, so a generator effect stays small as kinds are added; their behaviour is unchanged. Commands only; the picker leaves the new kinds out until their panels are designed.
A new kind with the reference's controls: Distance (1 reaches about half a UV tile in), Smoothness, Balance, Contrast and Invert. Each covered texel's exact Euclidean distance to the nearest uncovered texel of its UV tile (the tile's edge counting as a border) sets a linear gradient; Smoothness blurs it with the empty space around the islands, softening the borders towards black; balance and contrast act like the global controls. The gradient is built once per UV layout and setting and cached. On the test gun it matches the reference within 0.002 to 0.011 mean error on every captured setting. Commands only; the picker leaves it out until its panel is designed.
A new kind with the reference's controls: 3D Position Start and End (0 to 1 across the mesh's bounds, scaled evenly like 3D Distance; bottom to top by default), Balance, Contrast and Invert. The value is how far along from the start to the end a texel lies, balanced and contrasted like the global controls; on the test gun it matches the reference within 0.001 on every captured setting, as 3D Distance does. It shares 3D Distance's command module; each refuses the other's controls, and both refuse the earlier model's and the global ones. Commands only: picking the points on the mesh and the panel come with its mock.
A new kind with the reference's controls: Position X, Y and Z across the mesh's bounds (scaled evenly, the longest side spanning 0 to 1, as the reference's position map is), Radius, Offset, Contrast and Invert. The value falls from 1 at the point to 0 at the radius and is then slid through by a histogram scan (offset 0 all black, 1 all white; contrast 1 a hard edge); it matches the reference within 0.001 on every captured setting. It reads its Position input like Position does, has no earlier model or global controls (both refused), and swapping onto it drops the earlier offset. Commands only: the picker leaves it out until its panel is designed.
Curvature, Ambient Occlusion and the three wear kinds take the reference's Micro Details: Use Micro Details (Curvature and Ambient Occlusion), Micro Height, Micro Normal, Curvature Type (Standard, Sobel, Smooth), Curvature Intensity, Height Details Intensity, AO Radius and AO Depth, with the images as the microHeight and microNormal inputs of effect.set (an image or a value; an empty slot reads black). Fitted to the reference app: the micro height becomes a normal, and that normal's divergence (Smooth: the height against blurred copies of itself) is added to the curvature input before the detail sizes blur it, with a small per-type lift; the micro normal adds its own divergence. Ambient Occlusion is multiplied by a horizon occlusion of the micro height over 16 directions. Both are built once per mesh map, image and settings and cached; derivatives and radii are per texel at 2K, so the look holds across resolutions. Off by default, so existing projects render as before; the controls move an earlier-model generator onto the reference's controls, are refused on kinds without them, and the images stay across swaps between kinds that have them.
Metal Edge Wear, Fiber Glass Edge Wear and Dirt take the reference's Use Custom Grunge switch and its grunge image (effect.set input: grunge). Once on, the image's gray replaces the kind's built-in pattern, fitted to the reference app: repeated grunge-scale times across the UV square from half way across the image, or across the mesh's bounds when triplanar; mid gray adds nothing, a brighter image wears edges more and leaves less dirt; the seed leaves it in place. An empty slot reads black. The image moves an earlier-model generator onto its wear controls, is refused on kinds without them, counts as a used resource and stays across swaps between wear kinds. Use Texture and the custom grunge share one slot placement; a generator's texture is boxed so the generator effect stays small.
A texture blends over the section-adjusted signal before the global controls: read in UV (scaled about the centre) or triplanar, turned gray by one of eight conversions, inverted, contrasted and brightened, then blended by one of ten modes at its opacity. Its image is the texture input of effect.set; an empty slot reads black. The panel shows Use texture at the end of Parameters, the texture's rows once it is on, and its slot first in Image inputs.
Position and Light read the mesh's own position across its bounds (an
image in the Position input still overrides it): the baked Position map's
normalisation is a bake setting, bounding sphere by default, which
squeezes the reference's 0..1 per axis. The light dials start at 0 on the
left and turn clockwise like the reference's. Commands refuse an input
the generator does not read and `direction` on kinds that point no way;
the detail size hint follows the sizes in use; tests check the exact blur
radius, a blurred position and the axis dropdown by its section.
Light takes the reference app's controls: a horizontal and a vertical angle, each a dial beside
an Angle slider in degrees, highlight glossiness and level, and light attenuation. It shades
the world space normal (else the mesh's normal) towards the light and fades the side away from
it across the position map (else the mesh's bounds); invert shades the far side instead. Both
maps can read an image input instead, and Light has no global adjustments. Light generators saved
before keep their level, softness, noise and direction and render as before; a light control
moves one onto the new controls.
Curvature, Ambient Occlusion, Position and the new World Space Normals take the reference
app's section controls under the global ones: invert, blur (occlusion and normals), balance
(a power curve on position and normals, linear on occlusion), contrast and brightness, and for
position and normals three axes, each inverted, blended over the others with its own mode and
weighted. Position reads the baked position map, else the mesh's bounds; World Space Normals
the baked world space normal, else the mesh's normal; both can read an image input instead.
Generators saved before keep their level, softness and noise and render as before; a section
control moves one onto the new controls, and level, softness, noise or direction move it back.
The curvature section names its detail sizes Sharp to Huge and its modes Dual and Unprocessed;
the global invert is a False/True button.
The widest global blur matches the reference's: 16 steps of 4.5 texels at 2K, up from 64.
Global blur is new in this pass, so no saved project changes.
Edges smoothness reached the widest blurred curvature level at about 7 of 16, so the rest of
the slider changed nothing: two wider levels cover the whole range. Ambient occlusion masking
below 0.14 masked nothing on Metal Edge Wear. Mode and sizes on a new Metal Edge Wear and global
blur, balance or contrast on the wear controls were accepted and ignored; they now keep the
earlier model or are refused, as are wear controls a kind doesn't have. Only the blurred levels
a generator reads are built. The labels before the reference's names parse again.
The wear kinds take the reference app's controls (wear level and contrast, grunge amount and
scale, triplanar, edges smoothness, ambient occlusion masking, curvature weight, edges masking),
computed from curvature, its blurred levels, ambient occlusion and a grunge pattern of our own
per kind. Fiber Glass Edge Wear is a new kind. Generators saved before keep their level, softness
and noise and render as before; editing a wear control moves one onto the new controls, and
level, softness or noise keep an added one on the earlier model.
Generators carry the reference app's names (Metal Edge Wear, Ambient Occlusion, Light, Position).
The generator slot opens the shared resource picker with each kind rendered as a mask on the
smart masks' preview orb, a die on seeded kinds, larger thumbnails and no current-item outline.
Thin areas stays loadable but is no longer offered. effect.set {generator} swaps a generator's
kind in place, keeping its position, blending and opacity.
Align the picker, catalog, replacement, defaults, and protocol on warp and blurSlope. Retire the old selectors, preserve stored filter settings, and apply Source Tiling to sampled inputs inside each UV tile.
Prepare Warp directions once per region and reuse the source for independent directions. Keep Chain sampling at each successive position.
Preserve main's draw identities and placed-fill picker. Repair sparse Compare and anchor evaluation, lighting, gradient boundaries, and seed restoration. Reduce redundant Color Match work, blur scratch, and cold environment reductions.
Validated with Linux cargo xtask ci, release compositor tests, CLI examples, and filter snapshots.
Integrate main's projector, resource-picker and UI changes. Keep Compare inputs tied to the correct folder draw, propagate filter margins through sparse masks, and preserve the real backdrop in folder thumbnails.
Retarget saved seed resets when folders are copied. Preserve grayscale tool choices, reject missing mask images before mutation, and release the previous anchor's draft and undo state when selection changes.
Borrow material data during planning and write filtered samples directly into output rows. Cover the repaired behavior in the compositor, engine and Properties tests.