Add brush face controls
CI / Format, lint, test, build (push) Waiting to run

This commit is contained in:
Rbanh committed 2026-06-06 06:09:02 -04:00
1 parent 02beeb7085
commit d847706b8f
2 files changed
+116

No files matched your search

+3
View File
@@ -17,6 +17,8 @@ With a brush actor selected, `1`/`2`/`3`/`4` enter vertex, edge, face, and clip
Vertex, edge, and face selections can be dragged on the viewport floor plane. The editor moves matching duplicated corner vertices across all brush faces so simple cube/prism brushes stay welded, recomputes face planes, and commits one undoable brush edit when the drag releases. Clip mode currently provides element visualization/selection only; split application is future CSG work.
When one or more faces are selected in Face mode, the Brush inspector shows selected-face controls for UV offset, UV scale, UV rotation, material ref, and texture ref. These fields edit the persisted `BrushFaceDesc` data through undoable brush updates. The current controls are data-oriented; Asset Browser picker/drop polish and per-face material batching in hydration are still follow-up work.
## Boolean Operations
The command palette exposes `brush.subtract`, `brush.intersect`, and `brush.merge_convex` for selected brush actors. The current implementation is a conservative bounds-based MVP intended for cuboid/prism blockout brushes:
@@ -32,3 +34,4 @@ These operations commit through history but are not full arbitrary-face CSG yet.
- Only convex authored faces are supported by the mesh builder.
- Subtractive brush markers are stored but not automatically evaluated.
- Clip split application and arbitrary-face CSG remain future roadmap work.
- Per-face material and texture refs persist, but generated brush meshes still hydrate through a single material batch.