mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
Extrude & Bevel, Revolve, Inflate and Rotate take render.mode "rendered", with quality (low, medium or high: 1, 2 x 2 or 3 x 3 samples a pixel), resolution (null for Document Raster Effects Settings, or 1 to 2400 ppi) and background (transparent or white). The effect then draws its solid as one image made with craft-raster3d: a depth buffer, the effect's lights in linear light with the material's roughness and metallic, and shadow maps for each light, over the effect's vector shadow. The image lies where the vector faces lie: each mesh point goes through the projection the effect draws its faces with (MeshProjection). The shaded faces are drawn instead, and the status bar and the effect.apply and effect.setParams results carry a "warning", when the image would pass 16,777,216 pixels at one sample a pixel, or when the solid is painted with a gradient, a pattern, graphics, an opacity below 100% or a blending mode other than Normal, and for Revolve on a group or on a fill or stroke. The warning check measures the image without rasterizing it. The 3D and Materials panel's Render Settings menu gains Rendered and Low, Medium and High Quality. Each choice is one undo step for the selection, and each object keeps its other render settings. The effect-art cache now includes the document's raster resolution, so changing Document Raster Effects Settings redraws rendered images. Every craft-libs rev moves to 64383b59, which adds crates/raster3d. Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md.