cad-editor/src/shaders
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 09e7e90aae feat(draworder): cross-type draw order + context menu
DRAWORDER now affects rendering immediately (bump geometry epoch so the
sort cache rebuilds) and front/back anchor to the block's full effective
sort range instead of only existing table entries, so bring-to-front
actually lands on top. The render fallback sorts table-absent entities by
their own handle.

Draw order now applies across entity types, not just within a type. A
per-entity draw-order rank (SortEntitiesTable override or own handle,
ranked per block) is encoded as a small signed clip-z bias in the wire,
hatch, image, and 3DFACE pipelines. The shared LessEqual depth buffer then
orders fills, lines, rasters and 2D solids against each other regardless of
pass order — without touching model coordinates. 3D meshes keep real
geometric depth; wipeouts stay always-on-top.

Adds a Draw Order submenu to the viewport context menu (Bring to Front,
Send to Back, Bring Above/Send Under Object). The above/under items run an
interactive reference-object pick, then reorder the captured selection.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 21:29:01 +03:00
..
blit.wgsl fix(viewport): blit UV crop for off-canvas viewports 2026-05-28 12:15:00 +03:00
face3d.wgsl feat(draworder): cross-type draw order + context menu 2026-05-30 21:29:01 +03:00
hatch.wgsl fix(shader): satisfy DX12/FXC X3507 in hatch fs_main (#31) 2026-05-29 21:16:21 +03:00
hatch_batched.wgsl feat(draworder): cross-type draw order + context menu 2026-05-30 21:29:01 +03:00
image.wgsl feat(draworder): cross-type draw order + context menu 2026-05-30 21:29:01 +03:00
mesh.wgsl feat(render): Flat/Gouraud shading, WithEdges overlay, paper-viewport mode 2026-05-27 05:57:19 +03:00
viewcube.wgsl fix: ViewCube hover, glow, centroids, corner geometry and snap angles 2026-04-23 19:11:19 +03:00
viewcube_text.wgsl first commit 2026-03-22 14:56:27 +03:00
wire.wgsl feat(draworder): cross-type draw order + context menu 2026-05-30 21:29:01 +03:00