cad-editor/src/shaders
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven c5ad13d5c7 fix(hatch): close the boundary loop in the fill shader
The point-in-polygon test in both hatch shaders walked edges
(v0,v1)…(vn-2,vn-1) but never the closing edge vn-1→v0, so an unclosed
boundary miscounted crossings and the fill bled outside the shape. SOLID
entities hit this — their four corners are not repeated — making color-wheel
fills spike past their bounds. Close each sub-loop (at NaN separators and at
the end); already-closed loops get a degenerate closing edge that crosses
nothing, so they're unaffected. (#140)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 17:14:11 +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(hatch): close the boundary loop in the fill shader 2026-06-20 17:14:11 +03:00
hatch_batched.wgsl fix(hatch): close the boundary loop in the fill shader 2026-06-20 17:14:11 +03:00
image.wgsl fix(scene): render raster images at correct position and size (#98) 2026-06-14 15:06:06 +03:00
mesh.wgsl feat(scene): tessellate loaded ACIS solids via the truck B-rep kernel 2026-06-15 00:30:18 +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(statusbar): transparency-display toggle (TPY pill) 2026-06-04 23:25:09 +03:00