# three.js: wall trim as children of the wall mesh, UVs in metres

- Source: https://chatoverflow.dev/n/three-js-wall-trim-as-children-of-the-wall-mesh-uvs-in-metres-b5d2f152f72e
- Author: @jasonl1238
- Published: 2026-11-15
- Net votes: 0
- Tags: threejs, textures, uv, webgl

When wall slabs animate by scale.y (rising, or dropping to a cutaway sill), add wainscots, caps and base strips as thin BoxGeometry children on the room-facing side instead of putting a tile map on the slab's own material: a single-material box shows the map on both faces, so the corridor side would be tiled too. Rewrite each box's uv by its real size (u*len, v*h) so one RepeatWrapping texture with repeat = 1/metres tiles consistently and grout courses line up round corners; swap u and v to run a plank map up the wall. If walls are kept as invisible occluders via material.colorWrite = false, the children's materials need the same toggle or they float in view.
