commit 7652bcd9e3fb83b289ad8a5279485f2a426893e2
parent 835c700c68ef9f576c2cee6cb08411c9b7a173d7
Author: anon <anon@example.com>
Date: Mon, 2 Nov 2026 11:57:54 +0000
Honor native RGB565 clothing and skin compositing
Diffstat:
8 files changed, 238 insertions(+), 46 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -1449,24 +1449,20 @@ introduction and starting-item gameplay remain open below.
endpoint pairs. Keep unsupported effects explicit rather than granting
partial bonuses silently. Audit the older Pre-Universe container action-8
fallback against the native action-6 gate. See [clothing](docs/clothing.md).
-- [ ] [P0] Fix shared green skin/outfit appearance in the WASM client. The
- purchase/wear run has correct slots and bonuses, but green arm/leg regions
- remain visible alongside white torso/boots. Check original texture categories,
- bare skin, both sleeve instances and skirt/trousers on owner and observer,
- including cold bootstrap. Captures are in `local/early-shop/runtime/`; do not
- infer complete visual fidelity from successful wear notifications alone.
- The complete Low-Tech set also exposes green neck/arm/leg regions despite
- correct independent sleeve slots and native AC totals. Compare shared skin
- compositing and original color-key behavior before adding item-specific fixes.
- Captures: `local/low-tech-set/fixture/`.
- The controlled regular Leather lifecycle also shows green skin regions beside
- correct changing armor totals and distinct body/vest styles. Include its owner,
- observer and cold captures in the shared investigation. Compare the owner's
- visible helmet with the observer's apparently uncovered head as well; see
- [Leather verification](docs/leather-armor.md#verification-scope).
- The retained earned Enforcer also shows bright green arm/leg regions in
- `local/earned-ninth-boundary/native-20261102-024758/initial/0/screen.png`.
- This is a first-impression presentation defect under the P0 policy above.
+- [x] [P0] Fix shared green skin/outfit appearance in the WASM client. The
+ original clothing merge expects RGB565 and its 16-bit green key; the graphics
+ adapter's RGB32 fallback broke that contract. RGB565 surfaces now preserve
+ native masks, pitch, locks, conversion and eviction without item-specific
+ fixes. Two-client live/cold checks cover bare/default skin, independent sleeves,
+ shirt/skirt/trouser alternatives, removal/re-wear and reconnect across male,
+ female and Atrox Omni-Med, Opifex Leather and Solitus Low-Tech wardrobes.
+ All 39 controlled instances retain exact item/location records and native
+ proxies. Settled captures show the Leather helmet on owner and observer;
+ initial spawn translucency must clear before judging those frames. Authored
+ green Leather cloth remains intact. All 113 native client test invocations,
+ the published WASM build and maintained movement/UI/Leather browser checks
+ pass. See [skin compositing](docs/character-appearance.md#skin-and-clothing-compositing)
+ and the raw captures under `local/skin-compositing/`.
- [ ] [P1] Reconstruct the original Arrival Hall and training-ground introduction.
Check all three factions' entry/exit flow, authored tutorial NPC identities,
dialogues, starter instructions and camera state. Replace training NPC
diff --git a/client/runtime/linux_graphics.c b/client/runtime/linux_graphics.c
@@ -72,7 +72,7 @@ struct surface_data {
};
static struct surface_object {
uint32_t interfaces[2], references[2];
- uint32_t width, height, caps, pixels, lock_flags, depth_bits, alpha;
+ uint32_t width, height, caps, pixels, lock_flags, depth_bits, alpha, rgb_bits;
uint32_t caps2, description_flags, pitch, mip_count;
int32_t lock_rectangle[4];
int locked;
@@ -958,6 +958,8 @@ static void destroy_surface_interface(struct surface_object *surface, unsigned i
}
static uint32_t release_surface(struct surface_object *surface, unsigned index);
+enum surface_transfer { SURFACE_READ, SURFACE_WRITE, SURFACE_EVICT };
+static void transfer_surface_pixels(struct surface_object *surface, enum surface_transfer operation);
static void create_surface(void)
{
@@ -981,7 +983,9 @@ static void create_surface(void)
if (texture) {
const uint32_t rgb[] = {32, 0x40, 0, 32, 0xff0000, 0xff00, 0xff, 0};
const uint32_t argb[] = {32, 0x41, 0, 32, 0xff0000, 0xff00, 0xff, 0xff000000};
- if ((memcmp((void *)ADDR(desc + 72), rgb, 32) && memcmp((void *)ADDR(desc + 72), argb, 32)) ||
+ const uint32_t rgb565[] = {32, 0x40, 0, 16, 0xf800, 0x7e0, 0x1f, 0};
+ if ((memcmp((void *)ADDR(desc + 72), rgb, 32) && memcmp((void *)ADDR(desc + 72), argb, 32) &&
+ memcmp((void *)ADDR(desc + 72), rgb565, 32)) ||
(MEM32(desc + 108) != 0 && MEM32(desc + 108) != 0x10) ||
MEM32(desc + 112) || MEM32(desc + 116) || ((flags & 0x100000) && MEM32(desc + 120)) ||
(MEM32(desc + 108) && (caps & ~0x400008u) != 0x1000)) {
@@ -1034,7 +1038,9 @@ static void create_surface(void)
}
surface->width = width;
surface->height = height;
- surface->pitch = mip ? (width * 4 + 7) & ~7u : width * 4;
+ surface->rgb_bits = texture ? MEM32(desc + 84) : 32;
+ surface->pitch = width * (surface->rgb_bits / 8);
+ if (mip) surface->pitch = (surface->pitch + 7) & ~7u;
surface->mip_count = mip ? levels - level : 0;
if (level) surface->caps2 |= 0x10000; /* DDSCAPS2_MIPMAPSUBLEVEL */
surface->caps = caps | (((surface->caps2 & 0x10) || (caps & 0x800)) ? 0x800u : 0x10004000u);
@@ -1045,7 +1051,7 @@ static void create_surface(void)
gl_target_destroy(surface->target); free(surface); if (first) release_surface(first, 0); g_eax = 0x8007000eu; return;
}
memset((void *)ADDR(surface->pixels), 0, surface->pitch * height);
- gl_target_write(surface->target, (void *)ADDR(surface->pixels));
+ transfer_surface_pixels(surface, SURFACE_WRITE);
}
surface->description_flags = 0x100f | (flags & 0x100000) | (mip ? 0x20000 : 0);
surface->owner = owner;
@@ -1208,7 +1214,8 @@ static void surface_pixel_format(struct surface_object *surface, uint32_t output
surface->alpha ? 0xff000000u : 0};
const uint32_t depth[] = {32, 0x400, 0, surface->depth_bits, 0,
surface->depth_bits == 16 ? 0xffff : 0xffffff, 0, 0};
- memcpy((void *)ADDR(output), surface->depth ? depth : format, sizeof(format));
+ const uint32_t rgb565[] = {32, 0x40, 0, 16, 0xf800, 0x7e0, 0x1f, 0};
+ memcpy((void *)ADDR(output), surface->depth ? depth : surface->rgb_bits == 16 ? rgb565 : format, sizeof(format));
}
static void describe_surface(struct surface_object *surface, uint32_t output)
@@ -1342,6 +1349,7 @@ static void surface_detach(void)
static void swap_surface_channels(struct surface_object *surface)
{
+ if (surface->rgb_bits == 16) return;
unsigned char *pixels = (void *)ADDR(surface->pixels);
unsigned width = surface->width, height = surface->height, pitch = surface->pitch;
for (unsigned y = 0; y < height; ++y)
@@ -1353,11 +1361,33 @@ static void swap_surface_channels(struct surface_object *surface)
}
}
-enum surface_transfer { SURFACE_READ, SURFACE_WRITE, SURFACE_EVICT };
-
static void transfer_surface_pixels(struct surface_object *surface, enum surface_transfer operation)
{
unsigned char *pixels = (void *)ADDR(surface->pixels), *packed = pixels;
+ if (surface->rgb_bits == 16) {
+ /* Keep the guest's RGB565 lock layout while the renderer stores RGBA8. */
+ packed = malloc((size_t)surface->width * surface->height * 4);
+ if (!packed) abort();
+ if (operation == SURFACE_READ) gl_target_read(surface->target, packed);
+ for (unsigned y = 0; y < surface->height; ++y)
+ for (unsigned x = 0; x < surface->width; ++x) {
+ uint16_t *pixel = (void *)(pixels + y * surface->pitch + x * 2);
+ unsigned char *rgba = packed + (y * surface->width + x) * 4;
+ if (operation == SURFACE_READ) {
+ *pixel = (rgba[0] >> 3 << 11) | (rgba[1] >> 2 << 5) | (rgba[2] >> 3);
+ } else {
+ unsigned red = *pixel >> 11, green = (*pixel >> 5) & 63, blue = *pixel & 31;
+ rgba[0] = (red << 3) | (red >> 2);
+ rgba[1] = (green << 2) | (green >> 4);
+ rgba[2] = (blue << 3) | (blue >> 2);
+ rgba[3] = 255;
+ }
+ }
+ if (operation == SURFACE_WRITE) gl_target_write(surface->target, packed);
+ else if (operation == SURFACE_EVICT) gl_target_evict(surface->target, packed);
+ free(packed);
+ return;
+ }
if (surface->pitch != surface->width * 4) {
packed = malloc((size_t)surface->width * surface->height * 4);
if (!packed) abort();
@@ -1423,7 +1453,7 @@ static void surface_lock(void)
surface->lock_flags = flags;
memcpy(surface->lock_rectangle, rectangle, 16);
describe_surface(surface, output);
- MEM32(output + 36) = surface->pixels + rectangle[1] * surface->pitch + rectangle[0] * 4;
+ MEM32(output + 36) = surface->pixels + rectangle[1] * surface->pitch + rectangle[0] * (surface->rgb_bits / 8);
g_eax = 0;
}
@@ -1501,10 +1531,17 @@ static void surface_blit(void)
}
} else if (to[0] < 0 || to[1] < 0 || to[2] > (int32_t)target->width || to[3] > (int32_t)target->height) return;
gl_target_blit(source->target, target->target, from, to);
- if (target->caps2 & 0x10) {
+ if (target->rgb_bits == 16) {
+ /* A blit into RGB565 also loses the low channel bits before rendering. */
+ if (!target->pixels) target->pixels = guest_malloc(target->pitch * target->height);
+ if (!target->pixels) abort();
+ transfer_surface_pixels(target, SURFACE_READ);
+ transfer_surface_pixels(target, SURFACE_WRITE);
+ }
+ if ((target->caps2 & 0x10) || (target->rgb_bits == 16 && !(target->caps & 0x800))) {
guest_free(target->pixels);
target->pixels = 0;
- } else if (target->caps & 0x800) {
+ } else if ((target->caps & 0x800) && target->rgb_bits != 16) {
transfer_surface_pixels(target, SURFACE_READ);
swap_surface_channels(target);
}
@@ -2453,10 +2490,13 @@ static void device_texture_formats(void)
recomp_func_t function = recomp_lookup(callback);
if (!function) function = recomp_lookup_import(callback);
uint32_t stack = g_esp, caller = g_cur_func;
- for (unsigned alpha = 0; alpha < 2; ++alpha) {
- const uint32_t format[] = {32, 0x40 | alpha, 0, 32, 0xff0000, 0xff00, 0xff,
- alpha ? 0xff000000u : 0};
- memcpy((void *)ADDR(record), format, 32);
+ const uint32_t formats[][8] = {
+ {32, 0x40, 0, 32, 0xff0000, 0xff00, 0xff, 0},
+ {32, 0x41, 0, 32, 0xff0000, 0xff00, 0xff, 0xff000000},
+ {32, 0x40, 0, 16, 0xf800, 0x7e0, 0x1f, 0},
+ };
+ for (unsigned i = 0; i < sizeof(formats) / sizeof(formats[0]); ++i) {
+ memcpy((void *)ADDR(record), formats[i], 32);
PUSH32(g_esp, data);
PUSH32(g_esp, record);
PUSH32(g_esp, RECOMP_RETADDR);
diff --git a/client/tests/devices.c b/client/tests/devices.c
@@ -82,6 +82,9 @@ static uint32_t inspect_format(uint32_t record, uint32_t data)
if (*memory(record + 28) == 0xff000000) format_mask |= 2;
else if (!*memory(record + 28)) format_mask |= 1;
}
+ if (*memory(record + 4) == 0x40 && *memory(record + 12) == 16 &&
+ *memory(record + 16) == 0xf800 && *memory(record + 20) == 0x7e0 &&
+ *memory(record + 24) == 0x1f && !*memory(record + 28)) format_mask |= 4;
++format_count;
return data ? 0 : 1;
}
@@ -99,6 +102,33 @@ static void format_callback(void)
}
#endif
+static void rgb565_managed_texture_survives_eviction(uint32_t draw)
+{
+ const uint32_t iid[] = {0xf5049e77, 0x11d24861, 0xa00007a4, 0xa82906c9};
+ uint32_t d3d = query(draw, iid), desc = workspace() + 128;
+ const uint32_t format[] = {32, 0x40, 0, 16, 0xf800, 0x7e0, 0x1f, 0};
+ memset(memory(desc), 0, 124);
+ *memory(desc) = 124; *memory(desc + 4) = 0x1007;
+ *memory(desc + 8) = 2; *memory(desc + 12) = 2;
+ memcpy(memory(desc + 72), format, sizeof(format));
+ *memory(desc + 104) = 0x1000; *memory(desc + 108) = 0x10;
+ assert(!invoke(draw, 6, 4, desc, workspace(), 0u));
+ uint32_t texture = *memory(workspace());
+ assert(!invoke(texture, 25, 5, 0u, desc, 0x21u, 0u));
+ const uint16_t colors[] = {0xf800, 0x7e0, 0x1f, 0x1234};
+ memcpy(memory(*memory(desc + 36)), colors, sizeof(colors));
+ assert(!invoke(texture, 32, 2, 0u));
+
+ assert(!invoke(d3d, 7, 1) && !invoke(d3d, 7, 1));
+ assert(!invoke(texture, 25, 5, 0u, desc, 0x11u, 0u));
+
+ assert(*memory(desc + 16) == 4);
+ assert(!memcmp(memory(*memory(desc + 36)), colors, sizeof(colors)));
+ assert(!invoke(texture, 32, 2, 0u));
+ assert(!invoke(texture, 2, 1));
+ invoke(d3d, 2, 1);
+}
+
static void textured_triangles(uint32_t draw, uint32_t device, uint32_t target, FILE *file)
{
uint32_t desc = workspace() + 128, input = workspace() + 512;
@@ -110,7 +140,7 @@ static void textured_triangles(uint32_t draw, uint32_t device, uint32_t target,
#else
uint32_t callback = 0x11110000u;
#endif
- assert(!invoke(device, 4, 3, callback, 0u) && format_mask == 3);
+ assert(!invoke(device, 4, 3, callback, 0u) && format_mask == 7);
format_count = 0;
assert(!invoke(device, 4, 3, callback, 1u) && format_count == 1);
const uint32_t states[] = {1, 2, 3, 4, 5, 6, 11, 12, 13, 14, 16, 17, 18, 21};
@@ -2075,6 +2105,7 @@ static void device_lifetime_and_rendering(const char *pixels_path)
assert(fwrite(rgb, 1, sizeof(rgb), file) == sizeof(rgb));
transformed_fans_without_diffuse_use_white(draw, device, color);
textured_triangles(draw, device, color, file);
+ rgb565_managed_texture_survives_eviction(draw);
mip_levels_render_after_edits_and_eviction(draw, device, color);
transformed_vertex_fog_blends_rgb(device, color, file);
vertex_buffer_draws_match_memory_draws(draw, device, color, file);
diff --git a/client/tests/surfaces.c b/client/tests/surfaces.c
@@ -229,6 +229,80 @@ static void uploaded_surface_releases_temporary_pixels(uint32_t caps2)
guest_free(reused);
assert(!invoke(surface, 2, 1) && !invoke(draw, 2, 1));
}
+
+static void rgb565_textures_preserve_pixels_and_rectangle_locks(uint32_t caps2)
+{
+ uint32_t draw = create_draw(), desc = workspace() + 128;
+ const uint32_t format[] = {32, 0x40, 0, 16, 0xf800, 0x7e0, 0x1f, 0};
+ memset(memory(desc), 0, 124);
+ *memory(desc) = 124; *memory(desc + 4) = 0x1007;
+ *memory(desc + 8) = 2; *memory(desc + 12) = 4;
+ memcpy(memory(desc + 72), format, sizeof(format));
+ *memory(desc + 104) = 0x1000; *memory(desc + 108) = caps2;
+ assert(!invoke(draw, 6, 4, desc, workspace(), 0u));
+ uint32_t texture = *memory(workspace());
+ assert(!invoke(texture, 25, 5, 0u, desc, 0x21u, 0u));
+ uint16_t *pixels = (void *)memory(*memory(desc + 36));
+ const uint16_t colors[] = {0xf800, 0x7e0, 0x1f, 0xffff, 0x1234, 0, 0x8410, 0x7bef};
+ assert(*memory(desc + 16) == 8);
+ assert(!memcmp(memory(desc + 72), format, sizeof(format)));
+ memcpy(pixels, colors, sizeof(colors));
+ assert(!invoke(texture, 32, 2, 0u));
+ uint32_t rect = workspace() + 400;
+ const int32_t rectangle[] = {1, 1, 3, 2};
+ memcpy(memory(rect), rectangle, sizeof(rectangle));
+
+ assert(!invoke(texture, 25, 5, rect, desc, 0x21u, 0u));
+ pixels = (void *)memory(*memory(desc + 36));
+ pixels[0] = 0x7e0;
+ pixels[1] = 0xf800;
+ assert(!invoke(texture, 32, 2, rect));
+ assert(!invoke(texture, 25, 5, 0u, desc, 0x11u, 0u));
+ pixels = (void *)memory(*memory(desc + 36));
+
+ const uint16_t expected[] = {0xf800, 0x7e0, 0x1f, 0xffff, 0x1234, 0x7e0, 0xf800, 0x7bef};
+ assert(!memcmp(pixels, expected, sizeof(expected)));
+ assert(!invoke(texture, 32, 2, 0u));
+ assert(!invoke(texture, 2, 1) && !invoke(draw, 2, 1));
+}
+
+static void rgb565_blits_preserve_the_native_skin_merge_key(void)
+{
+ uint32_t draw = create_draw(), source = create_surface(draw, 0x2040);
+ uint32_t desc = workspace() + 128, rect = workspace() + 400;
+ *memory(desc) = 124;
+ assert(!invoke(source, 25, 5, 0u, desc, 0x21u, 0u));
+ const uint32_t cloth[] = {0x00ff00, 0x123456, 0x0000ff, 0x00fe00};
+ memcpy(memory(*memory(desc + 36)), cloth, sizeof(cloth));
+ assert(!invoke(source, 32, 2, 0u));
+ const uint32_t format[] = {32, 0x40, 0, 16, 0xf800, 0x7e0, 0x1f, 0};
+ memset(memory(desc), 0, 124);
+ *memory(desc) = 124; *memory(desc + 4) = 0x1007;
+ *memory(desc + 8) = 1; *memory(desc + 12) = 4;
+ memcpy(memory(desc + 72), format, sizeof(format));
+ *memory(desc + 104) = 0x1000;
+ assert(!invoke(draw, 6, 4, desc, workspace(), 0u));
+ uint32_t texture = *memory(workspace());
+ const int32_t rectangle[] = {0, 0, 4, 1};
+ memcpy(memory(rect), rectangle, sizeof(rectangle));
+
+ assert(!invoke(texture, 5, 6, 0u, source, rect, 0x1000000u, 0u));
+ assert(!invoke(texture, 25, 5, 0u, desc, 0x21u, 0u));
+ uint16_t *pixels = (void *)memory(*memory(desc + 36));
+ const uint16_t packed[] = {0x7e0, 0x11aa, 0x1f, 0x7e0};
+ assert(!memcmp(pixels, packed, sizeof(packed)));
+ for (unsigned i = 0; i < 4; ++i)
+ if (pixels[i] == 0x7e0) pixels[i] = 0x9b07;
+ assert(!invoke(texture, 32, 2, 0u));
+ assert(!invoke(source, 5, 6, rect, texture, 0u, 0x1000000u, 0u));
+ assert(!invoke(source, 25, 5, 0u, desc, 0x11u, 0u));
+
+ const uint32_t merged[] = {0x9c6139, 0x103452, 0x0000ff, 0x9c6139};
+ for (unsigned i = 0; i < 4; ++i)
+ assert((memory(*memory(desc + 36))[i] & 0xffffff) == merged[i]);
+ assert(!invoke(source, 32, 2, 0u));
+ assert(!invoke(texture, 2, 1) && !invoke(source, 2, 1) && !invoke(draw, 2, 1));
+}
#endif
static void rectangle_locks_preserve_surrounding_pixels(uint32_t caps)
@@ -775,6 +849,9 @@ int main(void)
#ifndef _WIN32
uploaded_surface_releases_temporary_pixels(0);
uploaded_surface_releases_temporary_pixels(0x10);
+ rgb565_textures_preserve_pixels_and_rectangle_locks(0);
+ rgb565_textures_preserve_pixels_and_rectangle_locks(0x10);
+ rgb565_blits_preserve_the_native_skin_merge_key();
#endif
rectangle_locks_preserve_surrounding_pixels(0x2040);
rectangle_locks_preserve_surrounding_pixels(0x840);
diff --git a/docs/character-appearance.md b/docs/character-appearance.md
@@ -58,6 +58,49 @@ Head and height changes commit with the character profile. Control-panel
edits retain them through reconnect, rezoning and restart. Failed or ignored
writes and failed COMMITs leave both memory and SQLite unchanged.
+## Skin and clothing compositing
+
+`bbr.dll!VisualCATMesh_t::MergeSkinWithClothTextures` at `10095f50` creates two
+format-4 textures, loads naked skin and cloth, and copies each cloth pixel except
+the RGB565 green key `0x07e0` onto the skin. The original `RTexture_t` constructor
+at `100eb5a0` passes that format through D3DX. Its format table maps 4 to 16-bit
+RGB565, and its selection callback at `1013b38c` prefers that format over RGB32.
+The wrapper exposes the actual surface lock directly to the merge.
+
+The previous graphics adapter advertised only RGB32 and ARGB32. D3DX therefore
+selected RGB32 for the merge, which still interpreted pixels as 16-bit words
+and failed to recognize green. The adapter now advertises and accepts RGB565,
+including its masks, pitch, two-byte pixels and rectangle offsets. Its existing
+RGBA8 renderer converts pixel storage at the surface boundary; blits into RGB565
+also quantize channels. The original clothing merge remains unchanged.
+[Microsoft's format table](https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dx-graphics-dds-pguide)
+documents the corresponding RGB565 masks `f800/07e0/001f`.
+
+Preserve authored garment colors. Original Omni-Med sleeve texture 14049 has a
+white cloth band and a large pure-green skin mask, so exposed forearms are
+expected. Leather sleeve/pants textures 9451/9453 instead contain textured green
+cloth and are absent from both native green-classification tables. Those green
+regions are intentional garment pixels.
+
+The focused surface regression reproduces the old adapter's unsupported format
+and checks the merge key, pixel conversion, rectangle locks and managed texture
+eviction. All 113 native client test invocations pass, and the matching WASM
+bundle builds and publishes. Original REA records, unchanged texture PNGs,
+native UI/ownership assertions and visual captures are retained under
+`local/skin-compositing/`. Controlled wardrobes establish rendering and item
+conservation, separately from earned acquisition or encounter balance.
+
+Two-client live and cold runs cover male/female Solitus and Atrox Omni-Med,
+Opifex Leather and Solitus Low-Tech. Each checks both sleeves, garment
+alternatives, removal/re-wear and page reconnect. All 39 controlled item
+instances retain their exact records, slots, quantities and qualities across
+cold startup; both clients have no runtime errors. Settled visual captures
+follow an ordinary walk and return after reconnect. Immediate spawn frames can
+still be translucent and must not be used to infer missing clothing or helmets.
+The settled Leather owner and observer both retain the helmet. The final
+captures are `native-20261102-034608` and `native-20261102-034814` under the
+evidence directory above.
+
## Evidence and remaining creation work
Complete REA records and extracted resource hashes are retained under
diff --git a/docs/early-armor.md b/docs/early-armor.md
@@ -190,11 +190,13 @@ their wallets and the same armor totals. All four native sessions used the
GPU/OpenGL renderer. Evidence, GPU metadata, wire streams,
read-only native probes and database snapshots live in `local/low-tech-set/`.
-Visual fidelity remains incomplete: exposed neck/arm/leg regions can render
-green, as already recorded for Omni-Med clothing. The native full-set screenshot
-retains this defect rather than claiming a complete visual pass. The almost
-empty original sleeve icon is a separate source-asset issue. Page exceptions
-and adapter-abort diagnostics were absent in the controlled set/style run.
+Those full-set captures retain green neck/arm/leg regions. The subsequent
+[shared skin-compositing fix](character-appearance.md#skin-and-clothing-compositing)
+restores the original RGB565 merge key and verifies Low-Tech skin and both
+sleeves through live changes, page reconnect and settled cold appearance.
+The almost empty original sleeve icon is a separate source-asset issue.
+Page exceptions and adapter-abort diagnostics were absent in the controlled
+set/style run and the later appearance check.
The complete maintained Go run passes 1676 root tests / 16515 results with no
skipped tests. The new armor and purchase selection passes 96 results in seven
diff --git a/docs/leather-armor.md b/docs/leather-armor.md
@@ -83,11 +83,13 @@ Rendered Stats show Projectile/Melee/Energy AC 137/155/27 with QL100 gloves and
138/156/27 after QL101 training. Read-only server totals include all eight ACs:
the final vest set is 138/156/27/27/138/138/27/31. Native raw stats90..97 are
separate dictionary values; they must not be mistaken for the effective armor.
-Screenshots retain the existing green-skin compositing limitation on the owner;
-the observer's worn-body capture also shows an apparently uncovered head beside
-the owner's visible helmet. Compare the head/appearance updates in the complete
-appearance audit, which remains open in TODO.md. Successful wear packets
-and correct totals do not establish full visual fidelity.
+Those screenshots prompted the
+[shared skin-compositing audit](character-appearance.md#skin-and-clothing-compositing).
+The original Leather sleeve/pants textures contain authored green cloth, which
+must remain. The RGB565 fix restores partial-texture skin merging separately.
+Settled owner/observer captures after ordinary movement retain the helmet,
+including after cold startup; immediate translucent spawn frames had obscured
+that comparison. Native wear effects and rendered appearance are checked separately.
Controlled fixture checks establish item behavior, not earned acquisition.
diff --git a/docs/shop-med-suit.md b/docs/shop-med-suit.md
@@ -88,9 +88,10 @@ The final wallet was 2850: 10000 minus the laboratory, standard 4500-credit set,
restarting the sole server without changing the database, fresh sessions
retained all nine item identities/locations, 49 charges, cash and raw skills.
The native skill window still showed 84/84. No browser exceptions occurred.
-Visible white torso/boot changes do not establish complete appearance fidelity:
-the final outfit still has green arm/leg regions, which need a separate visual
-audit before claiming all textures match the original game.
+Those captures retained green arm/leg regions despite correct wear effects.
+The subsequent [shared skin-compositing fix](character-appearance.md#skin-and-clothing-compositing)
+restores the original RGB565 merge key and verifies both sleeves, garment
+alternatives, removal/re-wear and settled two-client cold appearance.
The full server suite passed 1364 roots (14508 results). Focused and race
selections each passed 87 roots (3878 results); gamedata and vet also passed.