cad-editor/src/scene/pipeline
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven b3e5743808 feat(image): fetch remote rasters and clip them to their boundary
A raster image reference now resolves through one memoised path shared by
the loader and the unresolved-reference placeholder:
- http/https URLs are fetched natively (rustls, 8s timeout, 32MB cap); a
  local file is read as before. The web build never fetches. The cache is
  cleared when a new document opens.
- Online, the fetched image displays; offline or on a broken/missing
  reference, the frame + saved path text still shows. One resolver keeps the
  two in agreement without fetching twice.

The raster is also clipped to its boundary: the image draws as the
triangulated clip polygon (ear-clipped) with per-vertex UVs instead of a
full quad, so pixels appear only inside the clip. Clip-boundary Y is raster
space (top-down), so it is flipped to the image's Y-up space in both the
outline and the clip triangulation so they align.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 20:11:29 +03:00
..
face3d_gpu.rs fix(render): flag 2D overlay fills so they show in every view mode 2026-07-18 15:15:24 +03:00
hatch_gpu.rs feat(web): render hatches on WebGL2 via a texture-backed renderer 2026-07-14 00:53:51 +03:00
hatch_web_gpu.rs feat(web): render hatches on WebGL2 via a texture-backed renderer 2026-07-14 00:53:51 +03:00
image_gpu.rs feat(image): fetch remote rasters and clip them to their boundary 2026-07-18 20:11:29 +03:00
mesh_gpu.rs feat(render): draw ACIS solids as B-rep feature edges, meshes as tri edges 2026-07-04 17:57:00 +03:00
mod.rs feat(image): fetch remote rasters and clip them to their boundary 2026-07-18 20:11:29 +03:00
text_gpu.rs fix(text): show text in command previews (move/copy/etc) (#316) 2026-07-10 10:49:13 +03:00
uniforms.rs refactor: remove the legacy full view_proj (CPU cull now relative-to-eye) 2026-06-24 20:14:41 +03:00
viewcube.rs chore(glam): use camera-module projection API for deprecated Mat4 rh ctors 2026-07-17 01:49:26 +03:00
wipeout_gpu.rs refactor(pipeline): name the real hatch renderer hatch_gpu, legacy → wipeout_gpu 2026-07-09 10:45:40 +03:00
wire_arena.rs perf(render): split the wire arena into regular + mesh-edge batches 2026-07-15 09:48:20 +03:00
wire_gpu.rs feat(mline): GPU-dash multiline elements with shared A-type alignment 2026-07-17 02:59:11 +03:00