Commit Graph
10 Commits
Author SHA1 Message Date
shinyobjectz 3a2b027488 FC0a: sliced and sampled UI pictures, UiScale, OverflowClipMargin, a 2D sampler and uv_transform, Text2d, and five more examples ported
UI. raea's Blitz draws CSS border-image (css-backgrounds-3: slice, width, outset, fill, and stretch, repeat, round or
space per axis), loading border-image-source as a third image layer beside backgrounds and masks. ImageNode's
image_mode { Sliced: TextureSlicer } is that border-image, and data-raea-bevy-slice gives Blitz bevy_ui's own rules: the
corners are the slices times min(the node over the picture, max_corner_scale), and Tile tiles a part from its start
every slice times stretch_value. A flipped sliced picture is mirrored on a layer behind its children. An ImageNode's
image can carry its own sampler ({ path, sampler: { filter } }). UiScale lays its roots out in a window 1/value of the
frame and scales it up. Node takes overflow_clip_margin, which Blitz honours for every clipping overflow as bevy_ui's
resolve_clip_rect does. The page bridge resolves url(..) in a style value (a background, a border-image) as it does
an img's src, which no CSS picture did before.

2D. Shape2D and Mesh2d's ColorMaterial take a texture with its own sampler (raea-sys-sampler) and a uv_transform
(Affine2). Text2d places a Text at its Transform, centred as Bevy's Anchor::CENTER. The shape2d row carries the sampler,
the uv_transform and the vertex colours as JSON in one loop, which keeps raea-runtime-scene under 2,000 lines.

Ported, each with a mutant that fails:
  ui/images/ui_texture_slice_flip_and_tile  1.0000 (stretched instead of tiled 0.7857, unflipped 0.8360)
  ui/images/ui_texture_slice                0.9990 (corner scale halved 0.9800)
  ui/scroll_and_overflow/overflow_clip_margin 0.9968 (without the margin 0.9890, tile 120)
  2d/mesh2d_repeated_texture                0.9912 (no uv_transform 0.9420, no sampler 0.9666, Text2d not centred 0.9789)
  ui/layout/flex_layout                     0.9909 (a Center row as FlexStart 0.9463)
58 of 61 ported pass; many_lights, many_foxes and transparency_3d still fail, as before.
2026-11-07 14:07:55 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00
shane d3c399b4d5 raea origin/main 2026-11-07 01:29:24 -08:00
shinyobjectz ad67361762 raea e2d2dd2c0 2026-11-06 20:49:59 -08:00
shinyobjectz 88ccb8284d raea 2e9eda9fa 2026-11-06 18:08:53 -08:00
shinyobjectz f955e031da raea 644193211 2026-11-06 17:26:46 -08:00
shinyobjectz 5e1c192d29 raea 9565b5f97 2026-11-06 16:27:57 -08:00
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00
shinyobjectz 925bc03c09 raea c8b196fdb32690c0ab507b6ecb34463bd859abf8 2026-11-05 04:36:44 -08:00
shinyobjectz f675b0ad2b raea dc579e418 2026-10-31 13:15:29 -07:00