cad-editor/src/shaders
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 0badf48454 feat(scene): tessellate loaded ACIS solids via the truck B-rep kernel
Rebuild every ACIS face as a truck topological Face and mesh it with truck,
routing loaded 3DSOLID/BODY/REGION/SURFACE through the same kernel the Model
tab uses. plane→try_attach_plane, cone/cylinder/sphere/torus→revolution faces
(truck's Surface has no cone/sphere/torus), spline→BSplineSurface grid sample.
Per-vertex normals are computed analytically outward per surface type and
triangle winding is oriented to match, since truck's own orientation isn't
consistent across independently built faces. `tessellate_solid3d|body|region|
surface` try this first and fall back to the bespoke sampler.

Light the mesh shader with three spread directional lights plus ambient
(abs(dot) per light, two-sided) so faces — including the inner walls of an
open lofted surface — never read as a flat dark mass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 00:30:18 +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): render dot patterns (zero-length dashes) 2026-06-09 23:15:45 +03:00
hatch_batched.wgsl fix(hatch): render dot patterns (zero-length dashes) 2026-06-09 23:15:45 +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