diff --git a/.agents/skills/formshot-rendering/references/tools.md b/.agents/skills/formshot-rendering/references/tools.md
index 648e9f75..bb8e5f14 100644
--- a/.agents/skills/formshot-rendering/references/tools.md
+++ b/.agents/skills/formshot-rendering/references/tools.md
@@ -1,12 +1,12 @@
# formshot tools
-Generated from the engine's command catalogue (formshot 0.4.0) by `./formshot agents sync`; do not edit by hand.
+Generated from the engine's command catalogue (formshot 0.6.0) by `./formshot agents sync`; do not edit by hand.
## Contents
-- Scene: `scene.add_group`, `scene.add_part`, `scene.add_primitive`, `scene.add_light`, `scene.add_cutaway`, `scene.remove`, `scene.rename`, `scene.set_transform`, `scene.set_visible`, `scene.set_locked`, `scene.set_ray_visibility`, `scene.set_part_colour`, `scene.set_metadata`, `scene.set_pivot`, `scene.set_light`, `scene.set_cutaway`, `scene.reparent`, `scene.duplicate`, `scene.import`, `scene.summary`, `scene.meshes`, `scene.mesh_data`
+- Scene: `scene.add_group`, `scene.add_part`, `scene.add_primitive`, `scene.add_light`, `scene.add_cutaway`, `scene.remove`, `scene.rename`, `scene.set_transform`, `scene.set_visible`, `scene.set_locked`, `scene.set_ray_visibility`, `scene.set_part_colour`, `scene.set_metadata`, `scene.set_pivot`, `scene.set_part_mesh`, `scene.set_light`, `scene.set_cutaway`, `scene.reparent`, `scene.duplicate`, `scene.import`, `scene.summary`, `scene.meshes`, `scene.mesh_data`, `scene.retessellate`
- Mesh: `mesh.add`, `mesh.remove`
-- Materials: `material.create`, `material.set_params`, `material.set_type`, `material.assign`, `material.rename`, `material.remove`
+- Materials: `material.create`, `material.set_params`, `material.set_type`, `material.set_slot`, `material.clear_slot`, `material.set_graph`, `material.label_add`, `material.label_set`, `material.label_remove`, `material.label_move`, `material.assign`, `material.rename`, `material.remove`, `material.types`, `material.node_kinds`, `material.program`, `material.preview_maps`, `material.get`, `material.labels`
- Texture: `texture.add`, `texture.remove`
- Cameras: `camera.add`, `camera.set`, `camera.set_active`, `camera.remove`, `camera.frame`
- Environment: `environment.set`
@@ -18,8 +18,12 @@ Generated from the engine's command catalogue (formshot 0.4.0) by `./formshot ag
- App: `app.version`, `app.catalogue`
- Selection: `selection.set`, `selection.clear`
- History: `history.undo`, `history.redo`, `history.begin_group`, `history.end_group`, `history.abandon_group`, `history.barrier`
-- Files: `file.new`, `file.open`, `file.save`, `file.import`, `file.close`, `file.export_image`, `file.export_model`, `file.snapshot`, `file.recover_list`, `file.recover`
+- Files: `file.new`, `file.open`, `file.save`, `file.import`, `file.close`, `file.export_image`, `file.export_model`, `file.snapshot`, `file.recover_list`, `file.recover`, `file.reimport`
- Viewing: `view.bounds`, `view.pick`, `view.frame`
+- Import: `import.probe`, `import.start`, `import.status`, `import.cancel`
+- Cad: `cad.status`, `cad.parts`
+- Handoff: `handoff.inspect`, `handoff.open`
+- Library: `library.list`, `library.get`, `library.favorite`, `library.recent`, `library.apply`, `library.save`, `library.remove`, `library.thumbnail`, `library.thumbnails`
- Nodes: `node.set_visible`, `node.set_locked`, `node.rename`, `node.remove`
- Undo: `undo`
- Redo: `redo`
@@ -144,6 +148,14 @@ Set or clear a node's gizmo pivot (local space).
- `id`: integer; required; range 1 to inf; Node
- `pivot`: value; Local pivot, null clears
+## scene.set_part_mesh
+
+Make a part show another existing mesh in place, keeping its id, name, material, transform and metadata; its old mesh is removed when nothing else uses it.
+
+- `id`: integer; required; range 1 to inf; Part
+- `mesh`: integer; required; range 1 to inf; Existing mesh the part shows from now on (add it first with mesh.add)
+- `remove_unused`: boolean; default true; Remove the old mesh when no other part uses it
+
## scene.set_light
Change a light node's settings; give only the fields to change.
@@ -196,10 +208,12 @@ Remove a mesh no part uses.
## material.create
-Create a material.
+Create a material, from a material type's preset when type is given.
- `key`: integer; range 1 to inf; Key; allocated when absent
-- `material`: object; fields name, params, textures, type_id
+- `material`: object; fields graph, labels, name, params, slots, textures, type_id
+- `name`: string; Name; the type's name when absent
+- `type`: string (generic | plastic | plastic_clear | metal | metal_brushed | paint | paint_metallic | glass | glass_thin | liquid | gem | rubber | fabric | ceramic | diffuse | emissive | wood | stone); Start from this material type's preset (ignores material)
## material.set_params
@@ -210,10 +224,71 @@ Change a material's surface parameters; give only the fields to change.
## material.set_type
-Change a material's catalogue type id.
+Change a material's type; keep false resets parameters and graph to the type's preset.
-- `key`: integer; required; range 1 to inf; Material
-- `type_id`: string; required; Catalogue type id
+- `keep`: boolean; default true; Keep parameters and graph; false resets them to the type's preset
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `type_id`: string; required; Material type id (alias: type); see material.types
+
+## material.set_slot
+
+Drive a material input with an image texture (an existing texture or a new path); give only the slot fields to change.
+
+- `colour_space`: string; Colour-space hint for the new texture
+- `input`: string (base_color | base_metalness | specular_weight | specular_roughness | coat_weight | coat_roughness | emission_color | geometry_opacity | normal | bump | displacement); required; Input the texture drives
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `path`: string; Image file to add as a new texture in the same step (instead of slot.texture)
+- `slot`: object; Only the slot fields to change; a new slot starts from the defaults; fields channel, colour_space, fallback, filter, flip_y, invert, multiply, projection, range, strength, texture, transform, wrap
+
+## material.clear_slot
+
+Remove the texture slot of a material input; the constant applies again.
+
+- `input`: string (base_color | base_metalness | specular_weight | specular_roughness | coat_weight | coat_roughness | emission_color | geometry_opacity | normal | bump | displacement); required; Input
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+
+## material.set_graph
+
+Replace a material's node graph, or remove it with null.
+
+- `graph`: value; required; The whole graph; null removes it
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `merge`: boolean; default false; Merge into the previous merging set_graph of this material until history.barrier, so a value drag is one undo step
+
+## material.label_add
+
+Add a label (an image projected onto the parts wearing the material), optionally adding its image file in the same step; answers the new label id.
+
+- `colour_space`: string; Colour-space hint for the new texture
+- `index`: integer; range 0 to inf; Position in the list; last when absent
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `label`: object; Label fields over the defaults (0.1 m square facing +Z, 10 mm deep); fields colour_space, depth, id, metalness, name, normal, opacity, origin, rotation, roughness, size, texture, two_sided, up, visible
+- `path`: string; Image file to add as the label's texture in the same step
+
+## material.label_set
+
+Change a label; give only the fields to change (path replaces its image with a new texture).
+
+- `colour_space`: string; Colour-space hint for the new texture
+- `id`: integer; required; range 1 to inf; Label id
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `label`: object; Only the label fields to change; fields colour_space, depth, id, metalness, name, normal, opacity, origin, rotation, roughness, size, texture, two_sided, up, visible
+- `path`: string; Image file to add as the label's new texture in the same step
+
+## material.label_remove
+
+Remove a label from a material.
+
+- `id`: integer; required; range 1 to inf; Label id
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+
+## material.label_move
+
+Move a label within its material's list; later labels print over earlier ones.
+
+- `id`: integer; required; range 1 to inf; Label id
+- `index`: integer; required; range 0 to inf; New position; later labels print over earlier ones
+- `key`: integer; required; range 1 to inf; Material (alias: material)
## material.assign
@@ -402,9 +477,17 @@ Start a new document, empty or from a template (empty-studio, product-white, stu
## file.open
-Open a .fshot project, or a model file as a new document.
+Open a .fshot project, or a model file as a new document with the file.import options (camera framed).
-- `path`: string; required; A .fshot project or a model file
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `merge`: boolean; default false; Put everything the file holds under one group
+- `name`: string; Name for the imported group (the original file name)
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; A .fshot project, or a model file (glb, gltf, obj, stl, ply, 3mf, fbx, step, stp, iges, igs) opened as a new document; the other options apply to a model only
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## file.save
@@ -414,12 +497,18 @@ Save the document as .fshot to path, or to its own path.
## file.import
-Import a model (glb, gltf, obj, stl, ply) with clean-up as one undoable step.
+Import a model (glb, gltf, obj, stl, ply, 3mf, fbx, step, iges) with clean-up as one undoable step; units, up_axis, stand_on_floor, center, merge and cad_quality are optional, and every node made carries source.path and source.node metadata.
-- `frame`: boolean; Frame the camera on the result (default: only when the document was empty)
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `frame`: boolean; Frame the camera on the result (default: only when the document had no parts)
+- `merge`: boolean; default false; Put everything the file holds under one group
- `name`: string; Name for the imported group (the original file name)
-- `options`: object; fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
-- `path`: string; required; Model file: glb, gltf, obj, stl or ply
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; Model file: glb, gltf, obj, stl, ply, 3mf, fbx, or step, stp, iges, igs through the CAD worker
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## file.close
@@ -598,6 +687,224 @@ Move the active camera, keeping its view direction, so the given nodes (or every
- `nodes`: array of ['string', 'integer']; Node ids (decimal strings or numbers)
- `width`: number; range 1 to inf; Viewport width in pixels (aspect only); the document's when absent
+## import.probe
+
+Read a model file without changing the document: {format, units_declared, units_guess, unit_guessed, up_axis, bounds: {min, max, size} in file units and size_m (the size in metres at units_guess), triangles, meshes, nodes, materials, textures, images_in_file (images stored inside the model), texture_slots, warnings}.
+
+- `path`: string; required; Model file to read
+- `worker`: boolean; default true; STEP and IGES: also open the file with the CAD worker (bodies, groups, colours, size; a few seconds); false answers from the file's header alone
+
+Note: read-only.
+
+## import.start
+
+Start importing a model in the background with the file.import options and return {job}; the read and clean-up run on a worker, and the document changes (one undo step) on the first engine call after the worker finishes. Follow it with import.status.
+
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `frame`: boolean; Frame the camera on the result (default: only when the document had no parts)
+- `merge`: boolean; default false; Put everything the file holds under one group
+- `name`: string; Name for the imported group (the original file name)
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; Model file: glb, gltf, obj, stl, ply, 3mf, fbx, or step, stp, iges, igs through the CAD worker
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
+
+## import.status
+
+An import job's progress: {job, state (running, done, failed, cancelled, or stale when the document was replaced while it ran and nothing was applied), stage (reading, validating, welding, normals, instancing, placing, converting, then waiting while a history group is open, done), fraction (0 to 1 over the whole import), path, seconds, result (the file.import reply) when done, error {message, code} when failed}; without job, {jobs: [...]} for every job of this session.
+
+- `job`: ['integer', 'string']; Job id from import.start
+
+Note: read-only.
+
+## import.cancel
+
+Cancel a running import job; the document stays exactly as it was. Answers the job's status with cancelled true when it was still running.
+
+- `job`: ['integer', 'string']; required; Job id from import.start
+
+## file.reimport
+
+Read the source files of the given imported nodes again (every imported node when none): parts match by source.node, then by unique name, then by identical shape; matched parts keep their materials and transforms and take the new shape, new parts are added, parts gone from the file are hidden (marked source.missing), all as one undo step. Answers {matched, added, hidden, updated, files: [{path, matched, added, hidden, updated, warnings, report (the clean-up report of the re-read), error?}]}.
+
+- `nodes`: array of ['string', 'integer']; Imported nodes (or groups holding them) whose files to read again; every imported node when absent
+
+## cad.status
+
+Whether the CAD worker that opens STEP and IGES files is installed, where, and which release; probe starts it once to check.
+
+- `probe`: boolean; Start the worker and ask its version (takes a few seconds)
+
+Note: read-only.
+
+## scene.retessellate
+
+Rebuild the meshes of CAD parts from their kept STEP or IGES source at a new quality; each part keeps its id, name, placement, material, visibility and selection (scene.set_part_mesh); one undo step.
+
+- `nodes`: array of ['string', 'integer']; Parts or groups whose CAD parts are rebuilt; every CAD part when absent
+- `quality`: value; required; Tessellation of STEP and IGES surfaces: a preset, or chord (fraction of the model's diagonal) and angle (degrees)
+
+## cad.parts
+
+Parts imported from STEP or IGES files, with their kept source, original path, quality, unit and up axis; nodes limits the answer to the parts under those nodes.
+
+- `nodes`: array of ['string', 'integer']; Parts or groups to look under; every part when absent
+
+Note: read-only.
+
+## handoff.inspect
+
+Tell what a file or folder another Form app wrote is (a GoF folder from FormSculpt or FormFabric, a FormSurface export folder of maps, a FormCAD, FormSculpt or FormFabric model) and what it holds, without changing the document.
+
+- `item`: ['string', 'integer']; For a GoF folder: the entry's file name, id or name; the newest entry meant for FormShot (target any or formshot) when omitted.
+- `path`: string; required; Absolute path of the file or folder: a GoF folder (holding gof.json), a FormSurface export folder or one of its files, or a model file.
+- `read`: boolean; default true; Read the model too, to count meshes, triangles, materials and textures.
+
+Note: read-only.
+
+## handoff.open
+
+Open what another Form app handed over, as a new document or added to the current one as one undo step; every node that arrives records source.app, source.path and source.node in its metadata, and FormSurface's maps arrive as texture references by role and colour space.
+
+- `as`: string (new | add); default "add"; new replaces the document with a new one holding the hand-off; add puts it into the current document as one undo step.
+- `frame`: boolean; Frame the camera on the scene afterwards; by default when the document had no parts before, or for a new document.
+- `item`: ['string', 'integer']; For a GoF folder: the entry's file name, id or name; the newest entry meant for FormShot (target any or formshot) when omitted.
+- `path`: string; required; Absolute path of the file or folder: a GoF folder (holding gof.json), a FormSurface export folder or one of its files, or a model file.
+
+## material.types
+
+The material types (id, name, category, default parameters, the parameters each page shows with ranges and units, preset graph) and the measured metal colours.
+
+- no parameters
+
+Note: read-only.
+
+## material.node_kinds
+
+Material graph node kinds with their input and output sockets, defaults and settings, and the material inputs slots and graph outputs may drive.
+
+- no parameters
+
+Note: read-only.
+
+## material.program
+
+A material's compiled program: whether it is constant, the instructions, constants, outputs, textures it samples and its encoded size.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+
+Note: read-only.
+
+## material.preview_maps
+
+Small base colour, roughness, metalness and normal maps of a material baked in uv space by the CPU interpreter (base64 PNG), for the window's raster material view.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+- `size`: integer; default 128; range 16 to 512; Map width and height in pixels
+
+Note: read-only.
+
+## material.get
+
+One material's full JSON (name, type, params, texture keys, slots, graph, labels), the document's texture references by key, and a summary of its compiled program.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+
+Note: read-only.
+
+## material.labels
+
+A material's labels in print order, each with its image path and pixel size (null when unknown), for the window's label list.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+
+Note: read-only.
+
+## library.list
+
+List material library presets by shelf (all, favorites, recent, user), category and search words, ranked when searching, with category counts and library warnings.
+
+- `category`: string; Category name (Metal) or folder (metal), any case
+- `limit`: integer; range 1 to inf; At most this many presets
+- `offset`: integer; default 0; range 0 to inf; Skip this many presets first
+- `query`: string; Words matched against name, tags, category and type, case- and accent-insensitive; results ranked
+- `shelf`: string (all | favorites | recent | user); default "all"; all, favorites, recent (most recent first) or user (the user's own presets)
+
+Note: read-only.
+
+## library.get
+
+One library preset: its file, its source and the material applying it would make.
+
+- `id`: string; required; Preset id (metal/gold-polished, user/my-red)
+
+Note: read-only.
+
+## library.favorite
+
+Mark or unmark a library preset as a favourite (kept in the user's library state).
+
+- `id`: string; required; Preset id
+- `on`: boolean; default true; true marks it a favourite, false unmarks it
+
+## library.recent
+
+The library presets applied most recently, newest first.
+
+- no parameters
+
+Note: read-only.
+
+## library.apply
+
+Apply a library preset to parts as one undo step: builds its material (or reuses an identical one) and assigns it to the parts the scope reaches (part, group or same_material).
+
+- `id`: string; required; Preset id
+- `nodes`: array of ['integer', 'string']; required; Node ids the preset is dropped on (parts or groups)
+- `scope`: string (part | group | same_material); default "part"; part: the parts in the given nodes; group: every part of their parent group; same_material: every part wearing the same material as a given part
+
+## library.save
+
+Save a document material as one of the user's own library presets (user/).
+
+- `category`: string (Metal | Plastic | Glass | Paint | Rubber | Fabric | Wood | Stone | Ceramic | Liquid | Gem | Emissive); required; Library category
+- `material`: integer; required; range 1 to inf; Material key of the document material to save
+- `name`: string; Preset name (the material's name when absent)
+
+## library.remove
+
+Delete one of the user's own library presets; built-in presets cannot be removed.
+
+- `id`: string; required; Id of one of the user's own presets (user/...)
+
+## library.thumbnail
+
+A preset's thumbnail (the material ball under the studio, CPU path traced, cached as PNG by preset hash and size); a missing one is queued on a background worker.
+
+- `id`: string; required; Preset id
+- `inline`: boolean; default false; Add the PNG as base64 when it is ready
+- `retry`: boolean; default false; Queue again a thumbnail whose render failed
+- `size`: integer; default 128; range 64 to 512; Width and height in pixels
+- `timeout`: integer; default 120; range 1 to 600; Seconds to wait at most
+- `wait`: boolean; default false; Wait for a missing thumbnail to be rendered (otherwise it is queued and the reply says queued)
+
+Note: read-only.
+
+## library.thumbnails
+
+Queue the thumbnails of several presets on the background worker, in the order given, and report each one's state.
+
+- `ids`: array of string; required; Preset ids, most wanted first
+- `size`: integer; default 128; range 64 to 512; Width and height in pixels
+
+Note: read-only.
+
## node.set_visible
Same as scene.set_visible ({id, visible} -> {ids: [id], visible}).
@@ -638,16 +945,30 @@ Same as file.new ({path?, title?, template?} unchanged).
Same as file.open ({path} unchanged).
-- `path`: string; required; A .fshot project or a model file
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `merge`: boolean; default false; Put everything the file holds under one group
+- `name`: string; Name for the imported group (the original file name)
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; A .fshot project, or a model file (glb, gltf, obj, stl, ply, 3mf, fbx, step, stp, iges, igs) opened as a new document; the other options apply to a model only
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## document.import
Same as file.import ({path, name?, options?} unchanged).
-- `frame`: boolean; Frame the camera on the result (default: only when the document was empty)
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `frame`: boolean; Frame the camera on the result (default: only when the document had no parts)
+- `merge`: boolean; default false; Put everything the file holds under one group
- `name`: string; Name for the imported group (the original file name)
-- `options`: object; fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
-- `path`: string; required; Model file: glb, gltf, obj, stl or ply
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; Model file: glb, gltf, obj, stl, ply, 3mf, fbx, or step, stp, iges, igs through the CAD worker
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## document.save
diff --git a/.claude/skills/formshot-harness/SKILL.md b/.claude/skills/formshot-harness/SKILL.md
index b1f2464a..f43a3e5f 100644
--- a/.claude/skills/formshot-harness/SKILL.md
+++ b/.claude/skills/formshot-harness/SKILL.md
@@ -1,15 +1,15 @@
---
name: formshot-harness
-description: "Guides work on formshot, the Form-family 3D product renderer by nodemode-ai: Rust engine workspace (fsh-*), CPU and GPU (wgpu, WGSL) path tracers, the live viewport (WebGL2 raster modes, the WebAssembly engine on WebGPU), layered materials, the .fshot project file, MCP tools, FastAPI service, Tauri desktop. Use whenever a task touches the document, commands, undo, the render snapshot, the BVH, BSDFs, sampling, tone mapping, glTF or OBJ import, the .fshot format or journal, the command registry or catalogue, the MCP endpoint or consent, the agent dock, the window shell, Home, the workspace, the service, the Tauri sidecar, doctor and notices runs, version bumps (0.x from 0.4.0), or any file under native/, frontend/src, backend/app, src-tauri or setup/. Enforces project laws (SEDO, zero DOM flicker, z-index tokens, no tests). Not for formsculpt or formsurface."
+description: "Guides work on formshot, the Form-family 3D product renderer by nodemode-ai: Rust engine workspace (fsh-*), CPU and GPU (wgpu, WGSL) path tracers, the live viewport (WebGL2 raster modes, the WebAssembly engine on WebGPU), layered materials, the .fshot project file, MCP tools, FastAPI service, Tauri desktop. Use whenever a task touches the document, commands, undo, the render snapshot, the BVH, BSDFs, sampling, tone mapping, model import (glTF, OBJ, 3MF, FBX, STEP, IGES), hand-offs, material types, slots and graphs, the material library, the .fshot format or journal, the command registry or catalogue, the MCP endpoint or consent, the agent dock, the window shell, Home, the workspace, the service, the Tauri sidecar, doctor and notices runs, version bumps (0.x from 0.6.0), or any file under native/, frontend/src, backend/app, src-tauri or setup/. Enforces project laws (SEDO, zero DOM flicker, z-index tokens, no tests). Not for formsculpt or formsurface."
license: Apache-2.0
metadata:
nodemode.author: nodemode-ai
- nodemode.pack-version: "0.4.0"
+ nodemode.pack-version: "0.6.0"
---
# Formshot Harness
-formshot is the Form family's 3D product renderer by nodemode-ai (Apache-2.0): open a model, drag materials onto parts, light it, watch a physically based picture converge, then render stills, animations and variants. It is modeled on its siblings formsurface (shell and service), formsculpt (launcher, setup and engine bridge) and formvis (the shared dock). Current state: v0.2.0, unreleased. The shell, the document and project file, the CPU path tracer and the command line render exist; everything else is planned with the version the plan gives it, and the sub-skills mark it planned. Since then the GPU path tracer (fsh-render-gpu, held to the CPU picture), device choice with a fallback to the CPU, the live viewport (WebGL2 raster modes, picking, gizmo, interaction regimes, an optional WebAssembly engine on WebGPU with a streamed fallback) and the engine-driven crash journal have landed. GPU work has run only on software drivers (lavapipe, SwiftShader, llvmpipe), and the path tracer in the window has not drawn a frame yet. Read the code before trusting a claim here.
+formshot is the Form family's 3D product renderer by nodemode-ai (Apache-2.0): open a model, drag materials onto parts, light it, watch a physically based picture converge, then render stills, animations and variants. It is modeled on its siblings formsurface (shell and service), formsculpt (launcher, setup and engine bridge) and formvis (the shared dock). Current state: v0.2.0, unreleased. The shell, the document and project file, the CPU path tracer and the command line render exist; everything else is planned with the version the plan gives it, and the sub-skills mark it planned. Since then the GPU path tracer (fsh-render-gpu, held to the CPU picture), device choice with a fallback to the CPU, the live viewport (WebGL2 raster modes, picking, gizmo, interaction regimes, an optional WebAssembly engine on WebGPU with a streamed fallback) and the engine-driven crash journal have landed. GPU work has run only on software drivers (lavapipe, SwiftShader, llvmpipe), and the path tracer in the window has not drawn a frame yet. After that came import (3MF, FBX, background jobs, reimport, embedded textures), STEP and IGES through FormCAD's kernel worker (fsh-cad), family hand-offs, material types, texture slots, graphs compiled to a material program, and the material library; both path tracers run material programs with textures (loaded by `fsh-commands/src/textures.rs`), image labels, thin film and dispersion. Read the code before trusting a claim here.
This pack exists so that an agent entering the repo cold edits the right layer, in the right order, under the project laws, and proves the result.
@@ -21,8 +21,8 @@ formshot-harness/
references/evals.md three evaluations and the trigger list
sub-skills/[skill-name]/SUB-SKILL.md
engine-core scene-document cpu-tracer gpu-tracer materials io-formats
- command-registry agent-substrate ui-shell viewport engine-service
- desktop-shell verification
+ cad-and-handoffs material-library command-registry agent-substrate
+ ui-shell viewport engine-service desktop-shell verification
```
Sub-skill paths resolve as `sub-skills/[skill-name]/SUB-SKILL.md` from this folder.
@@ -31,20 +31,22 @@ Sub-skill paths resolve as `sub-skills/[skill-name]/SUB-SKILL.md` from this fold
| Area | Location | Role |
| --- | --- | --- |
-| Rust engine | `native/` (one Cargo workspace, edition 2021, all crates 0.4.0) | everything that knows about scenes, rays and pixels |
+| Rust engine | `native/` (one Cargo workspace, edition 2021, all crates 0.6.0) | everything that knows about scenes, rays and pixels |
| fsh-core | `native/crates/fsh-core` | maths, Transform, Ray, Aabb, Rgb in ACEScg, typed ids and document keys, units, the deterministic sampler, warps and MIS heuristics; std only |
-| fsh-scene | `native/crates/fsh-scene` | the document, the command enum and its table, undo and redo with merge and groups, change levels, selection, `flatten()` to `RenderSnapshot` |
+| fsh-scene | `native/crates/fsh-scene` | the document, the command enum and its table, undo and redo with merge and groups, change levels, selection, `flatten()` to `RenderSnapshot`; the 18 material types, texture slots, material graphs, the compiler to programs and the preview bake |
| fsh-accel | `native/crates/fsh-accel` | two-level binned-SAH BVH, watertight triangle test, `Intersector` |
-| fsh-materials | `native/crates/fsh-materials` | the layered surface BSDF (diffuse, GGX, coat, transmission, fuzz) with energy compensation tables |
-| fsh-io | `native/crates/fsh-io` | glTF/GLB and OBJ readers to a raw scene, clean-up, PNG and HDR or EXR writers |
-| fsh-format | `native/crates/fsh-format` | the `.fshot` stored ZIP, deterministic save, validated load, atomic write, the command journal and recovery |
+| fsh-materials | `native/crates/fsh-materials` | the layered surface BSDF (diffuse, GGX, coat, transmission, fuzz) with energy compensation tables; thin film and dispersion (`film.rs`, `optics.rs`); the material program (25 opcodes, 24 the label projection), the texture sampler and mips, its interpreter, texture pixel types and the ten procedural patterns |
+| fsh-io | `native/crates/fsh-io` | glTF/GLB, OBJ, STL, PLY, 3MF and FBX (ufbx, native only) readers to a raw scene with texture slots, clean-up with tangents, `probe`, the Form family hand-off readers (`family/`), PNG and HDR or EXR writers |
+| fsh-cad | `native/crates/fsh-cad` | STEP and IGES through FormCAD's kernel worker (a child process, JSON lines): locate, client, quality, `.mesh` parsing, colours and shared shapes, file scans; native only |
+| fsh-format | `native/crates/fsh-format` | the `.fshot` stored ZIP, deterministic save, validated load, atomic write, embedded textures named by SHA-256, kept CAD sources, the command journal and recovery |
| fsh-render-cpu | `native/crates/fsh-render-cpu` | the CPU path tracer (the specification engine), progressive passes, develop, the a-trous denoiser |
| fsh-render-gpu | `native/crates/fsh-render-gpu` | the GPU path tracer on wgpu 30: one WGSL megakernel, software BVH and ray-query traversal, refusals, bands, readback; held to fsh-render-cpu's picture (the planned-for-0.3.0 tracer, now built) |
-| fsh-commands | `native/crates/fsh-commands` | the one catalogue (88 entries) and `dispatch(session, name, args)` over an engine session; device choice and the GPU fallback ladder, interaction regimes, render jobs and the render region, picking and framing, the crash journal |
+| fsh-commands | `native/crates/fsh-commands` | the one catalogue (121 entries), the texture loader (`textures.rs`) and `dispatch(session, name, args)` over an engine session; device choice and the GPU fallback ladder, interaction regimes, render jobs and the render region, picking and framing, the crash journal; command groups in `src/ext/` (import with jobs and reimport, cad, handoff, materials, library with its thumbnail worker) |
| fsh-cli | `native/crates/fsh-cli` | `formshot-engine`: render (`--device`), info, convert, devices, bench, catalogue, dispatch (`--journal`) over stdin JSON lines |
| fsh-py, fsh-wasm | `native/crates/fsh-py`, `fsh-wasm` | PyO3 module `fsh_py` and the wasm-bindgen package (session, service mirror, `create_viewport` on WebGPU), both outside the default members |
-| Frontend | `frontend/` (vanilla TypeScript, Vite, port 5300) | `src/shell/` frame, registry, menus, Home, settings, dock adapter; `src/ui/` workspace and viewport; `src/engine/` client, streamed render loop, `raster/` (WebGL2), `gpu/` (WebGPU engine), `pkg/` (built wasm, ignored); `src/dock/` shared dock |
-| Backend | `backend/app/` (FastAPI, 127.0.0.1:8300) | window key and local guard, projects library, engine bridge (with the journal folder), render routes, mesh and snapshot byte routes, `/mcp`, consent, the agent bus |
+| Frontend | `frontend/` (vanilla TypeScript, Vite, port 5300) | `src/shell/` frame, registry, menus, Home, settings, dock adapter; `src/ui/` workspace and viewport, `import/`, `cad/`, `handoff/`, the Material page (`pages/material.ts`, `material/`), the graph editor (`graph/`), the library panel (`library/`); `src/engine/` client, streamed render loop, `raster/` (WebGL2), `gpu/` (WebGPU engine), `pkg/` (built wasm, ignored); `src/dock/` shared dock |
+| Backend | `backend/app/` (FastAPI, 127.0.0.1:8300) | window key and local guard, projects library, engine bridge (with the journal folder), render routes, mesh and snapshot byte routes, `/mcp`, consent, the agent bus; `routers/` imports (uploads, sweep), cad (worker fetch), handoff (watcher, offers), textures, library (thumbnails) |
+| Material presets | `assets/library/` | 249 preset JSON files and the generated `materials/index.json`, bundled as a Tauri resource |
| Sidecar entry | `backend/formshot_engine.py` | PyInstaller entry, frozen as `formshot-engine-backend` |
| Desktop | `src-tauri/` (Tauri 2) | splash, sidecar start, window key, main window, `.fshot` association, updater |
| Dispatcher | `./formshot`, `./build_app` and `setup/` | one script per task |
@@ -53,10 +55,12 @@ Sub-skill paths resolve as `sub-skills/[skill-name]/SUB-SKILL.md` from this fold
```
fsh-core <- fsh-scene, fsh-accel, fsh-materials
+fsh-scene -> fsh-materials (the program types; re-exported as fsh_scene::fsh_materials)
fsh-io, fsh-format -> fsh-core, fsh-scene
+fsh-cad -> fsh-core, fsh-io (and FormCAD's kernel worker as a child process, never linked)
fsh-render-cpu -> fsh-core, fsh-scene, fsh-accel, fsh-materials (rayon)
fsh-render-gpu -> fsh-core, fsh-scene, fsh-accel, fsh-materials, fsh-render-cpu (wgpu, bytemuck; pollster natively)
-fsh-commands -> every crate above (fsh-render-gpu natively only)
+fsh-commands -> every crate above (fsh-render-gpu and fsh-cad natively only)
fsh-cli, fsh-py, fsh-wasm -> fsh-commands; fsh-cli also fsh-io; fsh-wasm on wasm32 also fsh-render-gpu (WebGPU)
backend/app/engine.py -> fsh_py (Binding) or formshot-engine dispatch --journal (Process, JSON lines)
backend/app/routers/mcp.py -> the engine catalogue, through consent
@@ -95,8 +99,10 @@ These come from the dev-rules operating mode and apply to every sub-skill.
| Nodes, meshes, materials as data, cameras, environment, commands, undo, merge, groups, selection, the render snapshot | `sub-skills/scene-document/SUB-SKILL.md` |
| The BVH, the CPU path tracer, lights, sky, ground, camera rays, develop, tone maps, denoise, determinism | `sub-skills/cpu-tracer/SUB-SKILL.md` |
| The GPU path tracer: WGSL modules, buffer layouts, traversal (BVH or ray queries), refusals, device choice and the CPU fallback, parity with the CPU, software Vulkan runs | `sub-skills/gpu-tracer/SUB-SKILL.md` |
-| BSDF lobes, Fresnel, energy tables, layering | `sub-skills/materials/SUB-SKILL.md` |
-| glTF/GLB, OBJ, PNG, HDR or EXR, the `.fshot` file, the journal and recovery | `sub-skills/io-formats/SUB-SKILL.md` |
+| BSDF lobes, Fresnel, energy tables, layering; material types, texture slots, graphs and node kinds, the program and its opcodes, procedurals, texture filtering, preview maps | `sub-skills/materials/SUB-SKILL.md` |
+| glTF/GLB, OBJ, STL, PLY, 3MF, FBX, import options, units, jobs, reimport, imported textures, PNG, HDR or EXR, the `.fshot` file, the journal and recovery | `sub-skills/io-formats/SUB-SKILL.md` |
+| STEP and IGES, fsh-cad, the CAD worker and its fetch, retessellation, hand-offs from FormCAD, FormSculpt, FormSurface and FormFabric | `sub-skills/cad-and-handoffs/SUB-SKILL.md` |
+| Material presets in `assets/library`, the `library.*` commands, thumbnails, the library panel | `sub-skills/material-library/SUB-SKILL.md` |
| Adding or changing an engine command end to end | `sub-skills/command-registry/SUB-SKILL.md` |
| MCP endpoint, stdio bridge, consent, agent configs, skills, the dock and its tabs | `sub-skills/agent-substrate/SUB-SKILL.md` |
| Window shell, registry, menus, palette, shortcuts, Home, workspace, settings, tokens, icons, languages | `sub-skills/ui-shell/SUB-SKILL.md` |
diff --git a/.claude/skills/formshot-harness/sub-skills/cad-and-handoffs/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/cad-and-handoffs/SUB-SKILL.md
new file mode 100644
index 00000000..4f3e7a07
--- /dev/null
+++ b/.claude/skills/formshot-harness/sub-skills/cad-and-handoffs/SUB-SKILL.md
@@ -0,0 +1,37 @@
+---
+name: cad-and-handoffs
+description: "Changes how formshot reads STEP and IGES through FormCAD's kernel worker (fsh-cad: locate, the JSON-lines client, quality presets, the .mesh file, colours and shared shapes, STEP and IGES file scans, probe), the CAD branch of import and jobs, kept sources, scene.retessellate and scene.set_part_mesh, the worker fetch (backend/app/routers/cad.py, setup/cad_worker, ./formshot cad), the CAD Import page and re-tessellate dialog, and hand-offs from FormCAD, FormSculpt, FormSurface and FormFabric (fsh_io::family, handoff.* commands, the watcher and consent prompt). Load for any CAD or hand-off change."
+---
+
+# CAD and Hand-offs
+
+## Purpose
+
+Own `native/crates/fsh-cad`, `native/crates/fsh-commands/src/ext/cad.rs` and `ext/handoff.rs`, `native/crates/fsh-io/src/family/`, `backend/app/routers/cad.py` and `handoff.py`, `setup/cad_worker`, and `frontend/src/ui/cad/` and `ui/handoff/`. Hands back a CAD or hand-off change that keeps the engine off the network, keeps part ids through retessellation, and asks the person before anything another program sent changes the document.
+
+## Preconditions
+
+STEP and IGES are read by FormCAD's kernel worker (OpenCascade 8.0.1, release `occt-8.0.1`), a child process speaking JSON lines (`hello`, `xde_read`, `tessellate`, `shutdown`; protocol 2), never linked. Its source and protocol are in FormCAD's `kernel/` folder; FormCAD is another repository, read-only from here. `docs/IMPORT.md` describes the user-facing behaviour; `native/HASHOUT_LOG.md` § fsh-cad and § fsh-commands, `backend/HASHOUT_LOG.md` and `frontend/HASHOUT_LOG.md` § CAD and hand-offs hold the decisions and what ran. Only Linux x86_64 has run. The worker sends no progress, no face colours, no IGES colours and no instance matrices; fsh-cad's `scan.rs` reads colours from the file and `read.rs` derives sharing by matching tessellations.
+
+## Procedure
+
+1. Read the logs above, then `fsh-cad/src/lib.rs` and the module you touch.
+2. The engine never downloads. The worker is found by `FORMSHOT_CAD_WORKER`, beside the program, then `/formshot/workers//`; the service and `./formshot cad fetch` install it there after checking the pinned record (`RELEASE`, `RECORD_SHA256` in cad.py), `SHA256SUMS` and every file. A new worker release changes those two constants and nothing else.
+3. Every worker call goes through `Worker::call` with a timeout and the `Watch`; cancel and timeout kill the child. Worker starts wait `fsh_cad::hello_timeout()` (`FORMSHOT_CAD_HELLO_TIMEOUT`, 120 s by default). The window learns which parts are CAD from `cad.parts`, not from node metadata in a snapshot; a save writes only the sources some part names. Keep `fsh-cad` out of the wasm32 tree (fsh-commands depends on it natively only).
+4. CAD reads produce a `fsh_io::RawScene` in metres, Z up, and go through the shared clean-up with instancing off; nodes carry `source.path`, `source.node`, and parts `source.cad`, `cad.mesh`, `cad.quality`, `cad.unit`, `cad.up`. Keep `Engine::import`'s CAD branch at its top and the job path in `ext/import/jobs.rs`.
+5. Retessellation and re-import swap meshes with `mesh.add` plus `scene.set_part_mesh`, so part ids, materials, selection and shared meshes survive; never rebuild a part.
+6. Kept sources (`fshot:sources/.`, at most 64 MiB) live in `Preserved::sources` and in the session folder; a change keeps saves without sources byte-identical to older ones.
+7. Hand-offs: readers in `fsh_io::family` recognise what each app writes (GoF manifests, FormSurface map names and templates, writers' generator lines). Anything that arrives on its own is held by the service and offered in the window (deny, once, always per app); only the window's own choice or an agent under MCP consent opens it. No URL scheme, no new file association. A hand-off is one undo step and records `source.app` and the other `source.*` keys.
+8. FormCAD, FormSculpt, FormSurface and FormFabric are not edited from here; a missing feature on their side is written down as an ask in the log.
+
+## Gate
+
+Done when `cargo clippy -p fsh-cad -p fsh-commands --all-targets -- -D warnings` is clean and `cargo check --target wasm32-unknown-unknown -p fsh-commands` passes; with the real worker fetched into a scratch `FORMSHOT_CACHE`, a STEP and an IGES sample imported through `formshot-engine dispatch` (and through `import.start` with a cancel), saved, reopened and resaved identically, and retessellated with part ids unchanged and undo exact; a hand-off change ran `handoff.inspect` and `handoff.open` on real exports of the sending app, and the prompt was seen in a browser.
+
+## Hands back
+
+The samples and their licences, triangle counts per quality, timings, whether the real worker or a stand-in answered, and what was not run (platforms, Tauri).
+
+## Owned resources
+
+None bundled. Related: `sub-skills/io-formats/SUB-SKILL.md`, `sub-skills/engine-service/SUB-SKILL.md`, `sub-skills/ui-shell/SUB-SKILL.md`.
diff --git a/.claude/skills/formshot-harness/sub-skills/command-registry/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/command-registry/SUB-SKILL.md
index b7ddc21e..092d1426 100644
--- a/.claude/skills/formshot-harness/sub-skills/command-registry/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/command-registry/SUB-SKILL.md
@@ -1,6 +1,6 @@
---
name: command-registry
-description: "Adds or changes a formshot engine command end to end: the fsh-scene command table or an fsh-commands session command, its JSON schema and change level, the catalogue, dispatch through formshot-engine and fsh_py, the MCP tool list, the palette's engine. entries, agents sync and docs. Load when adding a tool, a render or document command, a menu item that runs the engine, or changing dispatch."
+description: "Adds or changes a formshot engine command end to end: the fsh-scene command table, an fsh-commands session command or a command group module in fsh-commands/src/ext, its JSON schema and change level, the catalogue, dispatch through formshot-engine and fsh_py, the MCP tool list, the palette's engine. entries, agents sync and docs. Load when adding a tool, a render or document command, a menu item that runs the engine, or changing dispatch."
---
# Command Registry
@@ -11,11 +11,12 @@ Own `fsh-commands`, the single source of truth for every engine action. One regi
## Preconditions
-State at 0.2.0: document commands are declared in `fsh-scene`'s `commands!` table; session commands (documents, rendering, history) in `fsh-commands`. Read both before adding one. The catalogue now has 88 entries (39 document, 38 engine, 11 aliases), including the view group (`view.pick`, `view.frame`, `view.bounds`), `scene.meshes`, `scene.mesh_data`, the render device, viewport and region commands and `file.snapshot`, `file.recover_list` and `file.recover`, plus a top-level `envelope` section: every `formshot-engine dispatch` reply carries `meta: {revision, content_revision}`. After adding a command, run `./formshot agents sync`. Window-only commands (`terminal.*`, `chat.*` and the rest) live on the service's bus and never reach the engine.
+State at 0.2.0: document commands are declared in `fsh-scene`'s `commands!` table; session commands (documents, rendering, history) in `fsh-commands`. Read both before adding one. The catalogue now has 88 entries (39 document, 38 engine, 11 aliases), including the view group (`view.pick`, `view.frame`, `view.bounds`), `scene.meshes`, `scene.mesh_data`, the render device, viewport and region commands and `file.snapshot`, `file.recover_list` and `file.recover`, plus a top-level `envelope` section: every `formshot-engine dispatch` reply carries `meta: {revision, content_revision}`. After adding a command, run `./formshot agents sync`. The catalogue now has 121 entries (47 document, 38 engine, 25 ext, 11 aliases): command groups added since live one module each in `native/crates/fsh-commands/src/ext/` (`import.rs` with `import/`, `cad.rs`, `handoff.rs`, `materials.rs`, `library.rs` with `library/`), each listing `ExtCommand {name, description, level, mutates, read_only, schema}` in `COMMANDS` and answering in `dispatch` (`None` for other names); `ext::commands()` adds them to the catalogue and `Engine::dispatch_value` routes them. Window-only commands (`terminal.*`, `chat.*` and the rest) live on the service's bus and never reach the engine.
## Procedure
-1. Pick the dotted name in an existing group (scene, mesh, material, texture, camera, environment, ground, image, render, units, document, history). The MCP tool name is the same dotted name.
+1. Pick the dotted name in an existing group (scene, mesh, material, texture, camera, environment, ground, image, render, units, document, history, import, cad, handoff, library). The MCP tool name is the same dotted name. A command that changes the document as data belongs in `fsh-scene`'s table (undo, journal, merge); a read-only or session-level command of a group goes in that group's `src/ext/` module; a new group gets a new module, reserved as an empty file first when several people work at once, and a line in `ext/mod.rs`'s `commands()` and `dispatch()`.
+1a. An ext module reaches the session only through the `pub(crate)` helpers of `engine.rs` (`changed`, `refresh_render`, `import`, `install_editor`, the `State` fields, `note`, `note_begin`, `note_end`, `note_sources`); a command that changes the document runs Editor commands inside them, so it stays one undo step and is journalled. Long work runs on a thread without the session lock and applies on a later dispatch, as `ext/import/jobs.rs` does.
2. Define the args struct with serde; give each field a one-line description so the schema explains itself.
3. Give the highest change level the command can produce; the window refreshes and the renderer restarts from it.
4. Mark read-only commands so the catalogue carries `annotations.readOnlyHint`; the service skips the consent prompt only for those.
diff --git a/.claude/skills/formshot-harness/sub-skills/cpu-tracer/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/cpu-tracer/SUB-SKILL.md
index a438e2d5..b736e685 100644
--- a/.claude/skills/formshot-harness/sub-skills/cpu-tracer/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/cpu-tracer/SUB-SKILL.md
@@ -23,6 +23,7 @@ State at 0.2.0: fsh-accel is built and measured (about 1.6 Mrays/s on 2 threads
6. A change that alters pictures gets a CHANGELOG line written for a person ("glass edges are less noisy"), not a formula.
7. A new draw, light, table or integrator step is recorded in `src/spec.rs` (`DRAW_ORDER` and the exported tables), then ported to the GPU through `sub-skills/gpu-tracer/SUB-SKILL.md`; until it is ported, the GPU engine must refuse the feature so the job stays on the CPU.
8. Never call `std::time::Instant` or spawn threads on a path that runs on wasm32: use the renderer's clock and `Execution::Inline`.
+9. At a hit the order is fixed and the GPU copies it: shaded inputs (the program through `Geometry::shade` with the ray-cone footprint, else the constant `program.base` with the tint), regularisation, opacity, then the dispersion hero channel on the evaluated ior, then `Bsdf::new_optics` when the instance has a film. Constant materials never run the interpreter and must render byte-identically to earlier builds. Textures reach the renderer only through `Renderer::set_textures`.
## Gate
diff --git a/.claude/skills/formshot-harness/sub-skills/engine-service/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/engine-service/SUB-SKILL.md
index 9e7fe95e..3d7e0ad0 100644
--- a/.claude/skills/formshot-harness/sub-skills/engine-service/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/engine-service/SUB-SKILL.md
@@ -11,7 +11,7 @@ Own `backend/`. The service never opens a `.fshot` itself and never fakes an eng
## Preconditions
-State at 0.2.0: the service ran here with its health, window key, projects, terminals, consent and MCP routes, and against a stand-in engine for the bridge. Not run: the `fsh_py` binding transport, Windows, macOS and the frozen build. Since then: `GET /api/engine/mesh/{key}` (FSHM v1 binary) and `GET /api/engine/snapshot` (`.fshot` bytes with `X-Formshot-Content-Revision`) serve the viewport, the engine keeps its crash journal in `/sessions`, and stored Rendering preferences are re-sent at each engine session start; all ran against the release engine.
+State at 0.2.0: the service ran here with its health, window key, projects, terminals, consent and MCP routes, and against a stand-in engine for the bridge. Not run: the `fsh_py` binding transport, Windows, macOS and the frozen build. Since then: `GET /api/engine/mesh/{key}` (FSHM v1 binary) and `GET /api/engine/snapshot` (`.fshot` bytes with `X-Formshot-Content-Revision`) serve the viewport, the engine keeps its crash journal in `/sessions`, and stored Rendering preferences are re-sent at each engine session start; all ran against the release engine. Then came `app/routers/imports.py` (model uploads to `/.imports//` with its own streaming multipart parser, folder scan, the 24-hour sweep in the router's lifespan), `cad.py` (the CAD worker's status and its download checked against a record pinned by SHA-256, with a CLI `main()` behind `./formshot cad`), `handoff.py` (the watcher of the GoF and FormSurface folders, held offers, per-app choices in `/handoff.json`), `textures.py` (slot image uploads, reusing the import parser) and `library.py` (thumbnails served from the engine's cache, polling the engine instead of holding its lock), and optional uv0 and tangent sections in the mesh block (flags in the version word's high half).
## Procedure
@@ -21,6 +21,9 @@ State at 0.2.0: the service ran here with its health, window key, projects, term
4. Engine errors map as the bridge does: refused 422, crashed 502, not built 503, timeout 504, each with a sentence. Never answer with made-up data.
5. Settings and environment names: `FORMSHOT_` first, then `FSH_`.
6. Requirements are pinned; a new package gets a row in `NOTICE.md` and is checked by `./formshot notices --check`.
+6a. Uploads go through the shared streaming parser in `routers/imports.py` (`receive`, `clean_name`); python-multipart is not a dependency. Anything another program can send (hand-offs) is held for the person's answer in the window, as outside agents are. The engine never touches the network: downloads (the CAD worker) happen here, hash-checked, and reach the engine as files.
+6b. Never hold the engine lock for a long engine job: queue it and poll, as the thumbnail route does.
+6c. A route that dispatches engine commands on behalf of an outside caller (an agent, MCP) uses `Engine.dispatch_outside(name, args, source)`, which publishes the matching change event so the window follows the edit.
7. Byte routes (meshes, snapshots, frames) answer `application/octet-stream` or the image type with `Cache-Control: no-store`, take the window key or a one-use ticket, and check what the engine sent (magic numbers, base64) before answering.
## Gate
diff --git a/.claude/skills/formshot-harness/sub-skills/gpu-tracer/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/gpu-tracer/SUB-SKILL.md
index 1bd0c9b0..c8e93e4e 100644
--- a/.claude/skills/formshot-harness/sub-skills/gpu-tracer/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/gpu-tracer/SUB-SKILL.md
@@ -21,6 +21,7 @@ State now: the megakernel renders everything the CPU path renders, with parity w
4. Materials stay data: a material edit must never change an override constant or compile a kernel. Run-time switches (adaptive sampling, the render region) are Frame flags, not override constants, so toggling them never compiles; the override constants are only lamps, catcher and normals. On WebAssembly a scene that no compiled kernel covers fails with a `Shader` error until the caller awaits `specialise_async()`.
5. Refusals: a scene the GPU cannot hold or would draw differently gets a `Refusals` entry (Limit or Feature) with a plain message, so the engine sends it to the CPU with that note.
6. Develop on software drivers: `VK_ICD_FILENAMES= formshot-engine devices`, then `render sample out.png --device gpu` and `bench`. `RendererOptions::shader_dir` loads WGSL from a folder without rebuilding.
+6a. Material programs, textures and optics: the material record is 160 bytes (program offset and `MAT_PROGRAM`, then thin film and dispersion), Frame 304 (`textures`), vertices are strided 16-byte attribute slots (normal, uv pairs, tangent by instance flags), and textures and program blobs live in `tables`. A new opcode lands in fsh-materials first, then in `program.wgsl` and `GPU_OPCODES`; a new procedural in `procedural.wgsl` and `GPU_PROCEDURALS`; the hit context and ray cone must stay exactly the CPU's (`Geometry::hit_context`). Compare interpreted values with `Program::evaluate` over many random hit contexts, not only pictures.
7. Rationale, measurements and what did not run go to `native/HASHOUT_LOG.md` § fsh-render-gpu.
## Gate
diff --git a/.claude/skills/formshot-harness/sub-skills/io-formats/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/io-formats/SUB-SKILL.md
index 8aecf182..117742e1 100644
--- a/.claude/skills/formshot-harness/sub-skills/io-formats/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/io-formats/SUB-SKILL.md
@@ -1,6 +1,6 @@
---
name: io-formats
-description: "Changes formshot's file handling: fsh-io (glTF/GLB, OBJ with MTL, STL and PLY readers to a raw scene, the clean-up pass, a GLB writer, PNG and HDR readers and writers, an EXR writer) and fsh-format (the .fshot stored ZIP with manifest, scene JSON, material JSON and binary meshes, deterministic save, validated load, atomic write, the JSONL command journal and recovery). Load for any import, export or project file change."
+description: "Changes formshot's file handling: fsh-io (glTF/GLB, OBJ with MTL, STL, PLY, 3MF and FBX readers to a raw scene with texture slots, the clean-up pass with tangents, probe, a GLB writer, PNG and HDR readers and writers, an EXR writer), import options, jobs, reimport and texture embedding in fsh-commands/src/ext/import and fsh-format (the .fshot stored ZIP with manifest, scene JSON, material JSON and binary meshes, deterministic save, validated load, atomic write, the JSONL command journal and recovery). Load for any import, export or project file change."
---
# IO Formats
@@ -11,7 +11,7 @@ Own the bytes that enter and leave the engine. Hands back a format change that o
## Preconditions
-State at 0.2.0: the `.fshot` layout is described in `docs/FILE-FORMAT.md` when that file is present, and in `native/HASHOUT_LOG.md` § fsh-format. glTF/GLB, OBJ, STL and PLY readers exist in fsh-io (`native/HASHOUT_LOG.md` § fsh-io); more importers (3MF, FBX) are planned for 0.5.0 to 0.6.0, STEP and IGES through FormCAD's kernel worker for the same turn, and image and scene exporters for later turns.
+State at 0.2.0: the `.fshot` layout is described in `docs/FILE-FORMAT.md` when that file is present, and in `native/HASHOUT_LOG.md` § fsh-format. glTF/GLB, OBJ, STL and PLY readers exist in fsh-io (`native/HASHOUT_LOG.md` § fsh-io); image and scene exporters are planned for later turns. Since then: 3MF (roxmltree and an own ZIP reader) and FBX (ufbx, native only) readers, ear clipping, MikkTSpace tangents in `RawScene::tangents`, instancing under rotation and mirroring, unit guesses with a confidence, `probe`, reader texture slots in the side tables `RawScene::extras` and `RawScene::images`, uvs stored v up by every reader; import options, jobs, re-import and texture embedding in `fsh-commands/src/ext/import/`; texture members named by SHA-256 (old names still load) and kept CAD sources under `sources/` in fsh-format. `docs/IMPORT.md` and `docs/FILE-FORMAT.md` describe them; STEP and IGES belong to `sub-skills/cad-and-handoffs/SUB-SKILL.md`.
## Procedure
@@ -21,10 +21,14 @@ State at 0.2.0: the `.fshot` layout is described in `docs/FILE-FORMAT.md` when t
4. `.fshot` saves are stored (no compression), entries in a fixed order with fixed timestamps, so identical documents give identical bytes. A new entry gets a manifest version bump and a loader that still opens the older version.
5. Writes go to a temporary file and are renamed into place. Loads validate everything and refuse with a readable error; they never panic.
6. Never read outside the file's own folder for side files.
+7. `RawMesh`, `RawMaterial` and `RawTexture` are built by full struct literals in fsh-commands/src/export.rs and fsh-io/src/family/handoff.rs; put new reader data in a side table on `RawScene` (as `tangents`, `extras` and `images` are) rather than a new field, or change every literal in the same change.
+8. Uvs are stored v up (the image's first row at v = 1): a new reader converts on read, `write_glb` converts back. Tangents follow the stored uvs.
+9. An import must stay one undo step and must not touch the document before `apply`: reading, cleaning, converting and embedding happen in `prepare`, which also runs on a job thread. Every reader polls `Watch` so cancel works.
+10. Add a new material field to `fsh_scene::MATERIAL_FIELDS`, or fsh-format reloads it as a preserved unknown field. A new member kind keeps older files byte-identical on resave and says in `docs/FILE-FORMAT.md` what older engines do with it.
## Gate
-Done when `cargo check` is clean for the touched crates, a save, reopen and save of a sample gave identical bytes (compare hashes), and an older sample still opened.
+Done when `cargo check` is clean for the touched crates (and `--target wasm32-unknown-unknown` for fsh-io, fsh-format and fsh-commands), a save, reopen and save of a sample gave identical bytes (compare hashes), an older sample still opened, and for a reader change every file of a corpus kept outside the repository imported, saved, was moved to a fresh folder, reopened with its textures and resaved identically, and truncated or bit-flipped copies gave errors, not panics.
## Hands back
diff --git a/.claude/skills/formshot-harness/sub-skills/material-library/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/material-library/SUB-SKILL.md
new file mode 100644
index 00000000..443e5cb6
--- /dev/null
+++ b/.claude/skills/formshot-harness/sub-skills/material-library/SUB-SKILL.md
@@ -0,0 +1,37 @@
+---
+name: material-library
+description: "Changes formshot's material library: the preset files and generated index in assets/library (format 1, measured and published sources, licences), the library.* engine commands in fsh-commands/src/ext/library (locating the library, strict reading, search, apply with scopes and reuse, favourites, recent, user presets, the CPU thumbnail worker and its cache), the thumbnail routes in backend/app/routers/library.py, the Tauri bundle resource, and the Library panel in frontend/src/ui/library. Load for any preset, library command, thumbnail or panel change."
+---
+
+# Material Library
+
+## Purpose
+
+Own `assets/library/`, `native/crates/fsh-commands/src/ext/library.rs` and `ext/library/`, `backend/app/routers/library.py`, the library entry of `src-tauri/tauri.conf.json`'s bundle resources, and `frontend/src/ui/library.ts` with `frontend/src/ui/library/`. Hands back a library where every number is traceable to a source, a bad file is a warning and never a crash, and applying a preset is one undo step.
+
+## Preconditions
+
+`docs/LIBRARY.md` describes the format, sources, commands, thumbnails and panel; `assets/library/README.md` the sources and how numbers were made; `native/HASHOUT_LOG.md` § fsh-commands (library entries), `backend/HASHOUT_LOG.md` and `frontend/HASHOUT_LOG.md` § The material library the decisions and what ran. 249 presets in twelve categories. Presets use the material types of `docs/MATERIALS.md`; wood, stone and metallic paint need their type graph, which the path tracers do not evaluate yet, so their thumbnails show the average tone.
+
+## Procedure
+
+1. Read the docs above, then the file you touch.
+2. Presets are data, not UI strings: names are not translated. Every `params` key is a `SurfaceParams` field, colours are ACEScg, numbers rounded to 4 places, `emission_color` normalised to luminance 1. Every number is covered by `source.kind` (measured or published, with `reference` and `urls`) or listed in `source.authored` with the reasoning in `notes`.
+3. Data: CC0 or public facts only (refractiveindex.info is CC0; cite the original paper too). Never take a preset, name, description or number from another renderer's library. Presets are Apache-2.0, our own work.
+4. Ids `/` are permanent: favourites, thumbnails and documents refer to them. Add, never rename.
+5. The index is generated; a hand-added preset needs its entry with the file's SHA-256 in category then name order, and the tree stays under 2 MB.
+6. Commands are ext commands in `ext/library/`; apply builds defaults, then the type preset, then `params`, then the tuned type graph, reuses an identical material, and runs inside one history group at Region level. Reading stays strict and failures become warnings in `library.list`.
+7. Thumbnails render on the background worker with their own document and renderer; never block dispatch or hold the session lock for a render (the service polls). Change the thumbnail scene only with a new `ball-N` look string in `thumbs.rs`, so old pictures are dropped.
+8. The panel keeps a fixed pool of tile nodes, requests thumbnails only for tiles in view, and uses `preset.*` window command ids (Home owns `library.*`).
+
+## Gate
+
+Done when the library validates (every file parses, ids, categories, types, params and tags valid, the index lists every file with its hash), `library.list` over `FORMSHOT_LIBRARY=assets/library` through `formshot-engine dispatch` answers 249 (or the new count) with no warnings, a changed preset was applied, undone and its thumbnail looked at, `cargo clippy -p fsh-commands --all-targets -- -D warnings` is clean, and a panel change was seen in a browser with no layout shift.
+
+## Hands back
+
+The presets touched with their sources, the list and apply output, the thumbnails looked at, and what was not run (the desktop bundle, Tauri).
+
+## Owned resources
+
+None bundled. Related: `sub-skills/materials/SUB-SKILL.md`, `sub-skills/command-registry/SUB-SKILL.md`, `sub-skills/ui-shell/SUB-SKILL.md`.
diff --git a/.claude/skills/formshot-harness/sub-skills/materials/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/materials/SUB-SKILL.md
index 8d6d0dc1..00f9ef1a 100644
--- a/.claude/skills/formshot-harness/sub-skills/materials/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/materials/SUB-SKILL.md
@@ -1,6 +1,6 @@
---
name: materials
-description: "Changes fsh-materials, formshot's layered surface BSDF: SurfaceInputs, EON diffuse, anisotropic GGX with visible-normal sampling, dielectric and F82-tint conductor Fresnel, coat, rough transmission, fuzz, lobe selection, and the directional-albedo tables for energy compensation. Load for any change to how a surface reflects or transmits light."
+description: "Changes fsh-materials, formshot's layered surface BSDF: SurfaceInputs, EON diffuse, anisotropic GGX with visible-normal sampling, dielectric and F82-tint conductor Fresnel, coat, rough transmission, fuzz, lobe selection, and the directional-albedo tables for energy compensation; and the material system: types, texture slots, graphs and node kinds, the compiler, the material program and its interpreter, procedural patterns, texture filtering and preview maps. Load for any change to how a surface reflects or transmits light or how a material is described or compiled."
---
# Materials
@@ -11,7 +11,7 @@ Own `native/crates/fsh-materials`. One surface model, with field meanings that f
## Preconditions
-State at 0.2.0: built and measured with a scratch program (white furnace 0.98 to 1.07 across nine presets, sample against pdf agreement within 0.003). Not built: thin film, subsurface, dispersion, coat darkening, measured metals (planned for 0.9.0 to 0.10.0 with advanced transport). Material presets and the node graph are planned for 0.5.0 to 0.6.0.
+State at 0.2.0: built and measured with a scratch program (white furnace 0.98 to 1.07 across nine presets, sample against pdf agreement within 0.003). Not built: subsurface and coat darkening (planned with advanced transport). Thin film (Belcour and Barla's Airy reflectance, `film.rs`) and dispersion (a Cauchy law and one hero colour channel per path, `optics.rs`) are built, per material and constant, applied after the program in both tracers. Since then the material system landed, described in `docs/MATERIALS.md`: 18 types as presets of the one model (`fsh-scene/src/types.rs`), texture slots (`slots.rs`), graphs with 18 node kinds (`graph.rs`), the compiler (`compile.rs`) to a `Program` of 24 opcodes (`fsh-materials/src/program.rs`), the interpreter (`interp.rs`), texture pixel types and the `TextureSampler` seam (`texture.rs`), ten procedural patterns in Rust (`procedural/`) and WGSL (`fsh-render-gpu/src/shaders/procedural.wgsl`, not yet included in the kernel), and the preview bake (`preview.rs`). Labels (`fsh-scene/src/labels.rs`, opcode 24) compile after slots and graph. Both tracers run programs: the CPU through `Program::evaluate` in fsh-render-cpu's `Geometry::shade`, the GPU through `program.wgsl` with textures packed by `texpack.rs`; textures are decoded by `fsh_io::decode_image` and loaded by `fsh-commands/src/textures.rs`, sampled by `sample.rs` and `texture.wgsl` identically. `material.preview_maps` samples the session's texture cache too. Images named by path in commands are embedded into the project when the command runs (`textures::embed_command_path`); program-changed normals are clamped in both integrators (`clamp_bent_normal`); procedural Normal outputs compile through a NormalMap step.
## Procedure
@@ -21,10 +21,14 @@ State at 0.2.0: built and measured with a scratch program (white furnace 0.98 to
4. Tables are computed by our own integration at first use; never paste a published table. Keep them deterministic for any thread count.
5. `eval`, `sample` and `pdf` must not allocate.
6. `fsh-scene`'s `SurfaceParams` holds the stored fields; a new stored field changes the document, so load `sub-skills/scene-document/SUB-SKILL.md` too.
+7. A constant material must stay a constant program whose `base` is bit-identical to `surface_inputs(params, None)`: the zero-cost path and the identity of older renders depend on it.
+8. A new opcode changes `Op`, the encoder, the disassembler, `fold` if it is pure, the interpreter, and later the WGSL interpreter; keep every integer in the encoded blob below 2^24 (the GPU reads it from a float buffer) and update `docs/MATERIALS.md`.
+9. A new node kind adds a `GraphOp`, its entry in `graph_kinds()` (sockets, defaults, settings), its compile arm and conversion rules; a procedural kind adds the Rust body and the WGSL port with the same pcg3d hashing, checked against each other on a software GPU (floats within 1e-4) and anti-aliased by the footprint.
+10. A type's defaults are data the library builds on: change a type only with `docs/MATERIALS.md` and check that the presets of that type (`assets/library`) still mean what they say.
## Gate
-Done when `cargo check -p fsh-materials` is clean and a scratch program outside the repo printed the white furnace range and the sample against pdf agreement for the changed lobe.
+Done when `cargo check -p fsh-materials` is clean and a scratch program outside the repo printed the white furnace range and the sample against pdf agreement for the changed lobe. For the material system: every type creates, compiles and round-trips; old projects load and resave byte-identically and render byte-identically; `material.program` disassembles the changed case; a procedural change compares CPU and WGSL over thousands of points.
## Hands back
diff --git a/.claude/skills/formshot-harness/sub-skills/ui-shell/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/ui-shell/SUB-SKILL.md
index 2ed2e937..f90d6d11 100644
--- a/.claude/skills/formshot-harness/sub-skills/ui-shell/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/ui-shell/SUB-SKILL.md
@@ -11,7 +11,7 @@ Own `frontend/` outside the viewport. The viewport itself (raster modes, picking
## Preconditions
-State at 0.2.0: the frame, Home, the workspace, menus, Preferences and the dock build and type-check; the workspace ran in headless Chrome against a stand-in engine. Planned: the WebGPU viewport with solid, wireframe and material preview modes (0.4.0), the material library contents (0.5.0 to 0.6.0). Since then the viewport's modes landed (raster in WebGL2, the WebGPU engine optional and falling back to streamed frames), Preferences > Rendering gained the device block, Viewport quality and Adaptive sampling, and the `gpuview` i18n namespace was added beside `workspace`.
+State at 0.2.0: the frame, Home, the workspace, menus, Preferences and the dock build and type-check; the workspace ran in headless Chrome against a stand-in engine. Planned: the WebGPU viewport with solid, wireframe and material preview modes (0.4.0), the material library contents (0.5.0 to 0.6.0). Since then the viewport's modes landed (raster in WebGL2, the WebGPU engine optional and falling back to streamed frames), Preferences > Rendering gained the device block, Viewport quality and Adaptive sampling, and the `gpuview` i18n namespace was added beside `workspace`. Then came the modules `import` (`src/ui/import/`: the import sheet, uploads, drops, launch opens), `handoff` and `cad` (entries in `src/modules.ts`), the Material inspector page (`src/ui/pages/material.ts` over `src/ui/material/`), the graph editor window (`src/ui/graph/`), the virtual-grid library panel (`src/ui/library/`), and the namespaces `import`, `handoff`, `cad`, `material`, `graph` and `library` (with English placeholders until translated; `labels` is reserved by the stub `src/ui/labels/index.ts`).
## Procedure
@@ -23,6 +23,9 @@ State at 0.2.0: the frame, Home, the workspace, menus, Preferences and the dock
6. Icons are inline currentColor SVG in `src/shell/icons.ts`; no icon library.
7. A new string goes into the module's `src/i18n/modules//strings.json` and every language table, then `./formshot i18n check`.
8. Engine calls go through `src/engine/client.ts`; it never touches the DOM. Controls whose command is missing are disabled with the reason as tooltip.
+9. A command id another module already registered (the workspace's `file.import`) is taken over in place through `getCommand(id)`, never registered twice (the registry throws). Home owns the `library.*` window ids, so the material library's are `preset.*`.
+10. Edits that drag send live commands at most once per frame and close with `history.barrier` or a `history.begin_group`/`end_group` pair, so a drag is one undo step. Overlays (sheets, prompts, the graph window, drag hints) live in `#overlay-root` with a `--z-*` token and reserve their full size before the first paint; long lists are virtual (a fixed node pool rebound in place).
+11. Read engine data through engine commands, never by unpacking the project snapshot: the Material page and the graph editor use `material.get`, the CAD module `cad.parts`. A mutating dispatch that answers `change: none` already schedules a summary refresh (one hook in `src/shell/commands.ts`), and outside edits arrive as service events; do not add per-module refresh workarounds. A value drag on a graph sends `material.set_graph {merge: true}` and ends with `history.barrier`.
## Gate
diff --git a/.claude/skills/formshot-harness/sub-skills/verification/SUB-SKILL.md b/.claude/skills/formshot-harness/sub-skills/verification/SUB-SKILL.md
index c3536b15..55e5f56a 100644
--- a/.claude/skills/formshot-harness/sub-skills/verification/SUB-SKILL.md
+++ b/.claude/skills/formshot-harness/sub-skills/verification/SUB-SKILL.md
@@ -20,6 +20,7 @@ FormShot has no test suites, by rule, until the owner asks in words. Checks are
3. Renders: `./formshot render sample.glb out.png --samples 256` with `--threads 1` and `--threads 2`; the two files must be identical (compare hashes).
3a. GPU: without a graphics card, point `VK_ICD_FILENAMES` at Mesa's lavapipe ICD file; `./formshot cli devices` must list the adapter, and `./formshot cli bench` must show every GPU within 0.005 mean absolute difference of the CPU (`mad_vs_cpu` in `--json`). Say which drivers ran: software Vulkan and GL prove parity, not speed, and say nothing about Metal, Direct3D 12 or ray-tracing hardware.
3b. Browser engine: `./formshot engine wasm`, then `vite build` with and without `frontend/src/engine/pkg`; in headless Chromium with SwiftShader WebGPU, report whether the kernel compiled or the guard fell back, and read pictures back (a WebGPU canvas is not composited headless).
+3c. Import and materials: an import corpus kept outside the repository (licences recorded; never committed) imported, saved, moved to a fresh folder, reopened with every `fshot:` texture present and resaved byte-identically; an older project resaved byte-identically; `material.program` on the changed materials. STEP and IGES need the CAD worker (`./formshot cad fetch` into a scratch `FORMSHOT_CACHE`); say whether the real worker or a stand-in answered. Library: `library.list` without warnings on `assets/library` and a thumbnail looked at.
4. Window: in `frontend/`, `npx tsc --noEmit` and `npm run build`; load the page and watch for console errors.
5. Throttled DOM check: observe mutations on the shell while idle and while the render converges. Expected: no unexpected node churn, no flash, no layout shift.
6. Kit: `./formshot i18n check`, `./formshot notices --check`, `./formshot agents check`.
diff --git a/.claude/skills/formshot-rendering/references/tools.md b/.claude/skills/formshot-rendering/references/tools.md
index 648e9f75..bb8e5f14 100644
--- a/.claude/skills/formshot-rendering/references/tools.md
+++ b/.claude/skills/formshot-rendering/references/tools.md
@@ -1,12 +1,12 @@
# formshot tools
-Generated from the engine's command catalogue (formshot 0.4.0) by `./formshot agents sync`; do not edit by hand.
+Generated from the engine's command catalogue (formshot 0.6.0) by `./formshot agents sync`; do not edit by hand.
## Contents
-- Scene: `scene.add_group`, `scene.add_part`, `scene.add_primitive`, `scene.add_light`, `scene.add_cutaway`, `scene.remove`, `scene.rename`, `scene.set_transform`, `scene.set_visible`, `scene.set_locked`, `scene.set_ray_visibility`, `scene.set_part_colour`, `scene.set_metadata`, `scene.set_pivot`, `scene.set_light`, `scene.set_cutaway`, `scene.reparent`, `scene.duplicate`, `scene.import`, `scene.summary`, `scene.meshes`, `scene.mesh_data`
+- Scene: `scene.add_group`, `scene.add_part`, `scene.add_primitive`, `scene.add_light`, `scene.add_cutaway`, `scene.remove`, `scene.rename`, `scene.set_transform`, `scene.set_visible`, `scene.set_locked`, `scene.set_ray_visibility`, `scene.set_part_colour`, `scene.set_metadata`, `scene.set_pivot`, `scene.set_part_mesh`, `scene.set_light`, `scene.set_cutaway`, `scene.reparent`, `scene.duplicate`, `scene.import`, `scene.summary`, `scene.meshes`, `scene.mesh_data`, `scene.retessellate`
- Mesh: `mesh.add`, `mesh.remove`
-- Materials: `material.create`, `material.set_params`, `material.set_type`, `material.assign`, `material.rename`, `material.remove`
+- Materials: `material.create`, `material.set_params`, `material.set_type`, `material.set_slot`, `material.clear_slot`, `material.set_graph`, `material.label_add`, `material.label_set`, `material.label_remove`, `material.label_move`, `material.assign`, `material.rename`, `material.remove`, `material.types`, `material.node_kinds`, `material.program`, `material.preview_maps`, `material.get`, `material.labels`
- Texture: `texture.add`, `texture.remove`
- Cameras: `camera.add`, `camera.set`, `camera.set_active`, `camera.remove`, `camera.frame`
- Environment: `environment.set`
@@ -18,8 +18,12 @@ Generated from the engine's command catalogue (formshot 0.4.0) by `./formshot ag
- App: `app.version`, `app.catalogue`
- Selection: `selection.set`, `selection.clear`
- History: `history.undo`, `history.redo`, `history.begin_group`, `history.end_group`, `history.abandon_group`, `history.barrier`
-- Files: `file.new`, `file.open`, `file.save`, `file.import`, `file.close`, `file.export_image`, `file.export_model`, `file.snapshot`, `file.recover_list`, `file.recover`
+- Files: `file.new`, `file.open`, `file.save`, `file.import`, `file.close`, `file.export_image`, `file.export_model`, `file.snapshot`, `file.recover_list`, `file.recover`, `file.reimport`
- Viewing: `view.bounds`, `view.pick`, `view.frame`
+- Import: `import.probe`, `import.start`, `import.status`, `import.cancel`
+- Cad: `cad.status`, `cad.parts`
+- Handoff: `handoff.inspect`, `handoff.open`
+- Library: `library.list`, `library.get`, `library.favorite`, `library.recent`, `library.apply`, `library.save`, `library.remove`, `library.thumbnail`, `library.thumbnails`
- Nodes: `node.set_visible`, `node.set_locked`, `node.rename`, `node.remove`
- Undo: `undo`
- Redo: `redo`
@@ -144,6 +148,14 @@ Set or clear a node's gizmo pivot (local space).
- `id`: integer; required; range 1 to inf; Node
- `pivot`: value; Local pivot, null clears
+## scene.set_part_mesh
+
+Make a part show another existing mesh in place, keeping its id, name, material, transform and metadata; its old mesh is removed when nothing else uses it.
+
+- `id`: integer; required; range 1 to inf; Part
+- `mesh`: integer; required; range 1 to inf; Existing mesh the part shows from now on (add it first with mesh.add)
+- `remove_unused`: boolean; default true; Remove the old mesh when no other part uses it
+
## scene.set_light
Change a light node's settings; give only the fields to change.
@@ -196,10 +208,12 @@ Remove a mesh no part uses.
## material.create
-Create a material.
+Create a material, from a material type's preset when type is given.
- `key`: integer; range 1 to inf; Key; allocated when absent
-- `material`: object; fields name, params, textures, type_id
+- `material`: object; fields graph, labels, name, params, slots, textures, type_id
+- `name`: string; Name; the type's name when absent
+- `type`: string (generic | plastic | plastic_clear | metal | metal_brushed | paint | paint_metallic | glass | glass_thin | liquid | gem | rubber | fabric | ceramic | diffuse | emissive | wood | stone); Start from this material type's preset (ignores material)
## material.set_params
@@ -210,10 +224,71 @@ Change a material's surface parameters; give only the fields to change.
## material.set_type
-Change a material's catalogue type id.
+Change a material's type; keep false resets parameters and graph to the type's preset.
-- `key`: integer; required; range 1 to inf; Material
-- `type_id`: string; required; Catalogue type id
+- `keep`: boolean; default true; Keep parameters and graph; false resets them to the type's preset
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `type_id`: string; required; Material type id (alias: type); see material.types
+
+## material.set_slot
+
+Drive a material input with an image texture (an existing texture or a new path); give only the slot fields to change.
+
+- `colour_space`: string; Colour-space hint for the new texture
+- `input`: string (base_color | base_metalness | specular_weight | specular_roughness | coat_weight | coat_roughness | emission_color | geometry_opacity | normal | bump | displacement); required; Input the texture drives
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `path`: string; Image file to add as a new texture in the same step (instead of slot.texture)
+- `slot`: object; Only the slot fields to change; a new slot starts from the defaults; fields channel, colour_space, fallback, filter, flip_y, invert, multiply, projection, range, strength, texture, transform, wrap
+
+## material.clear_slot
+
+Remove the texture slot of a material input; the constant applies again.
+
+- `input`: string (base_color | base_metalness | specular_weight | specular_roughness | coat_weight | coat_roughness | emission_color | geometry_opacity | normal | bump | displacement); required; Input
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+
+## material.set_graph
+
+Replace a material's node graph, or remove it with null.
+
+- `graph`: value; required; The whole graph; null removes it
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `merge`: boolean; default false; Merge into the previous merging set_graph of this material until history.barrier, so a value drag is one undo step
+
+## material.label_add
+
+Add a label (an image projected onto the parts wearing the material), optionally adding its image file in the same step; answers the new label id.
+
+- `colour_space`: string; Colour-space hint for the new texture
+- `index`: integer; range 0 to inf; Position in the list; last when absent
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `label`: object; Label fields over the defaults (0.1 m square facing +Z, 10 mm deep); fields colour_space, depth, id, metalness, name, normal, opacity, origin, rotation, roughness, size, texture, two_sided, up, visible
+- `path`: string; Image file to add as the label's texture in the same step
+
+## material.label_set
+
+Change a label; give only the fields to change (path replaces its image with a new texture).
+
+- `colour_space`: string; Colour-space hint for the new texture
+- `id`: integer; required; range 1 to inf; Label id
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+- `label`: object; Only the label fields to change; fields colour_space, depth, id, metalness, name, normal, opacity, origin, rotation, roughness, size, texture, two_sided, up, visible
+- `path`: string; Image file to add as the label's new texture in the same step
+
+## material.label_remove
+
+Remove a label from a material.
+
+- `id`: integer; required; range 1 to inf; Label id
+- `key`: integer; required; range 1 to inf; Material (alias: material)
+
+## material.label_move
+
+Move a label within its material's list; later labels print over earlier ones.
+
+- `id`: integer; required; range 1 to inf; Label id
+- `index`: integer; required; range 0 to inf; New position; later labels print over earlier ones
+- `key`: integer; required; range 1 to inf; Material (alias: material)
## material.assign
@@ -402,9 +477,17 @@ Start a new document, empty or from a template (empty-studio, product-white, stu
## file.open
-Open a .fshot project, or a model file as a new document.
+Open a .fshot project, or a model file as a new document with the file.import options (camera framed).
-- `path`: string; required; A .fshot project or a model file
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `merge`: boolean; default false; Put everything the file holds under one group
+- `name`: string; Name for the imported group (the original file name)
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; A .fshot project, or a model file (glb, gltf, obj, stl, ply, 3mf, fbx, step, stp, iges, igs) opened as a new document; the other options apply to a model only
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## file.save
@@ -414,12 +497,18 @@ Save the document as .fshot to path, or to its own path.
## file.import
-Import a model (glb, gltf, obj, stl, ply) with clean-up as one undoable step.
+Import a model (glb, gltf, obj, stl, ply, 3mf, fbx, step, iges) with clean-up as one undoable step; units, up_axis, stand_on_floor, center, merge and cad_quality are optional, and every node made carries source.path and source.node metadata.
-- `frame`: boolean; Frame the camera on the result (default: only when the document was empty)
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `frame`: boolean; Frame the camera on the result (default: only when the document had no parts)
+- `merge`: boolean; default false; Put everything the file holds under one group
- `name`: string; Name for the imported group (the original file name)
-- `options`: object; fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
-- `path`: string; required; Model file: glb, gltf, obj, stl or ply
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; Model file: glb, gltf, obj, stl, ply, 3mf, fbx, or step, stp, iges, igs through the CAD worker
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## file.close
@@ -598,6 +687,224 @@ Move the active camera, keeping its view direction, so the given nodes (or every
- `nodes`: array of ['string', 'integer']; Node ids (decimal strings or numbers)
- `width`: number; range 1 to inf; Viewport width in pixels (aspect only); the document's when absent
+## import.probe
+
+Read a model file without changing the document: {format, units_declared, units_guess, unit_guessed, up_axis, bounds: {min, max, size} in file units and size_m (the size in metres at units_guess), triangles, meshes, nodes, materials, textures, images_in_file (images stored inside the model), texture_slots, warnings}.
+
+- `path`: string; required; Model file to read
+- `worker`: boolean; default true; STEP and IGES: also open the file with the CAD worker (bodies, groups, colours, size; a few seconds); false answers from the file's header alone
+
+Note: read-only.
+
+## import.start
+
+Start importing a model in the background with the file.import options and return {job}; the read and clean-up run on a worker, and the document changes (one undo step) on the first engine call after the worker finishes. Follow it with import.status.
+
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `frame`: boolean; Frame the camera on the result (default: only when the document had no parts)
+- `merge`: boolean; default false; Put everything the file holds under one group
+- `name`: string; Name for the imported group (the original file name)
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; Model file: glb, gltf, obj, stl, ply, 3mf, fbx, or step, stp, iges, igs through the CAD worker
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
+
+## import.status
+
+An import job's progress: {job, state (running, done, failed, cancelled, or stale when the document was replaced while it ran and nothing was applied), stage (reading, validating, welding, normals, instancing, placing, converting, then waiting while a history group is open, done), fraction (0 to 1 over the whole import), path, seconds, result (the file.import reply) when done, error {message, code} when failed}; without job, {jobs: [...]} for every job of this session.
+
+- `job`: ['integer', 'string']; Job id from import.start
+
+Note: read-only.
+
+## import.cancel
+
+Cancel a running import job; the document stays exactly as it was. Answers the job's status with cancelled true when it was still running.
+
+- `job`: ['integer', 'string']; required; Job id from import.start
+
+## file.reimport
+
+Read the source files of the given imported nodes again (every imported node when none): parts match by source.node, then by unique name, then by identical shape; matched parts keep their materials and transforms and take the new shape, new parts are added, parts gone from the file are hidden (marked source.missing), all as one undo step. Answers {matched, added, hidden, updated, files: [{path, matched, added, hidden, updated, warnings, report (the clean-up report of the re-read), error?}]}.
+
+- `nodes`: array of ['string', 'integer']; Imported nodes (or groups holding them) whose files to read again; every imported node when absent
+
+## cad.status
+
+Whether the CAD worker that opens STEP and IGES files is installed, where, and which release; probe starts it once to check.
+
+- `probe`: boolean; Start the worker and ask its version (takes a few seconds)
+
+Note: read-only.
+
+## scene.retessellate
+
+Rebuild the meshes of CAD parts from their kept STEP or IGES source at a new quality; each part keeps its id, name, placement, material, visibility and selection (scene.set_part_mesh); one undo step.
+
+- `nodes`: array of ['string', 'integer']; Parts or groups whose CAD parts are rebuilt; every CAD part when absent
+- `quality`: value; required; Tessellation of STEP and IGES surfaces: a preset, or chord (fraction of the model's diagonal) and angle (degrees)
+
+## cad.parts
+
+Parts imported from STEP or IGES files, with their kept source, original path, quality, unit and up axis; nodes limits the answer to the parts under those nodes.
+
+- `nodes`: array of ['string', 'integer']; Parts or groups to look under; every part when absent
+
+Note: read-only.
+
+## handoff.inspect
+
+Tell what a file or folder another Form app wrote is (a GoF folder from FormSculpt or FormFabric, a FormSurface export folder of maps, a FormCAD, FormSculpt or FormFabric model) and what it holds, without changing the document.
+
+- `item`: ['string', 'integer']; For a GoF folder: the entry's file name, id or name; the newest entry meant for FormShot (target any or formshot) when omitted.
+- `path`: string; required; Absolute path of the file or folder: a GoF folder (holding gof.json), a FormSurface export folder or one of its files, or a model file.
+- `read`: boolean; default true; Read the model too, to count meshes, triangles, materials and textures.
+
+Note: read-only.
+
+## handoff.open
+
+Open what another Form app handed over, as a new document or added to the current one as one undo step; every node that arrives records source.app, source.path and source.node in its metadata, and FormSurface's maps arrive as texture references by role and colour space.
+
+- `as`: string (new | add); default "add"; new replaces the document with a new one holding the hand-off; add puts it into the current document as one undo step.
+- `frame`: boolean; Frame the camera on the scene afterwards; by default when the document had no parts before, or for a new document.
+- `item`: ['string', 'integer']; For a GoF folder: the entry's file name, id or name; the newest entry meant for FormShot (target any or formshot) when omitted.
+- `path`: string; required; Absolute path of the file or folder: a GoF folder (holding gof.json), a FormSurface export folder or one of its files, or a model file.
+
+## material.types
+
+The material types (id, name, category, default parameters, the parameters each page shows with ranges and units, preset graph) and the measured metal colours.
+
+- no parameters
+
+Note: read-only.
+
+## material.node_kinds
+
+Material graph node kinds with their input and output sockets, defaults and settings, and the material inputs slots and graph outputs may drive.
+
+- no parameters
+
+Note: read-only.
+
+## material.program
+
+A material's compiled program: whether it is constant, the instructions, constants, outputs, textures it samples and its encoded size.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+
+Note: read-only.
+
+## material.preview_maps
+
+Small base colour, roughness, metalness and normal maps of a material baked in uv space by the CPU interpreter (base64 PNG), for the window's raster material view.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+- `size`: integer; default 128; range 16 to 512; Map width and height in pixels
+
+Note: read-only.
+
+## material.get
+
+One material's full JSON (name, type, params, texture keys, slots, graph, labels), the document's texture references by key, and a summary of its compiled program.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+
+Note: read-only.
+
+## material.labels
+
+A material's labels in print order, each with its image path and pixel size (null when unknown), for the window's label list.
+
+- `key`: integer; range 1 to inf; Material (alias: material)
+- `material`: integer; range 1 to inf; Same as key
+
+Note: read-only.
+
+## library.list
+
+List material library presets by shelf (all, favorites, recent, user), category and search words, ranked when searching, with category counts and library warnings.
+
+- `category`: string; Category name (Metal) or folder (metal), any case
+- `limit`: integer; range 1 to inf; At most this many presets
+- `offset`: integer; default 0; range 0 to inf; Skip this many presets first
+- `query`: string; Words matched against name, tags, category and type, case- and accent-insensitive; results ranked
+- `shelf`: string (all | favorites | recent | user); default "all"; all, favorites, recent (most recent first) or user (the user's own presets)
+
+Note: read-only.
+
+## library.get
+
+One library preset: its file, its source and the material applying it would make.
+
+- `id`: string; required; Preset id (metal/gold-polished, user/my-red)
+
+Note: read-only.
+
+## library.favorite
+
+Mark or unmark a library preset as a favourite (kept in the user's library state).
+
+- `id`: string; required; Preset id
+- `on`: boolean; default true; true marks it a favourite, false unmarks it
+
+## library.recent
+
+The library presets applied most recently, newest first.
+
+- no parameters
+
+Note: read-only.
+
+## library.apply
+
+Apply a library preset to parts as one undo step: builds its material (or reuses an identical one) and assigns it to the parts the scope reaches (part, group or same_material).
+
+- `id`: string; required; Preset id
+- `nodes`: array of ['integer', 'string']; required; Node ids the preset is dropped on (parts or groups)
+- `scope`: string (part | group | same_material); default "part"; part: the parts in the given nodes; group: every part of their parent group; same_material: every part wearing the same material as a given part
+
+## library.save
+
+Save a document material as one of the user's own library presets (user/).
+
+- `category`: string (Metal | Plastic | Glass | Paint | Rubber | Fabric | Wood | Stone | Ceramic | Liquid | Gem | Emissive); required; Library category
+- `material`: integer; required; range 1 to inf; Material key of the document material to save
+- `name`: string; Preset name (the material's name when absent)
+
+## library.remove
+
+Delete one of the user's own library presets; built-in presets cannot be removed.
+
+- `id`: string; required; Id of one of the user's own presets (user/...)
+
+## library.thumbnail
+
+A preset's thumbnail (the material ball under the studio, CPU path traced, cached as PNG by preset hash and size); a missing one is queued on a background worker.
+
+- `id`: string; required; Preset id
+- `inline`: boolean; default false; Add the PNG as base64 when it is ready
+- `retry`: boolean; default false; Queue again a thumbnail whose render failed
+- `size`: integer; default 128; range 64 to 512; Width and height in pixels
+- `timeout`: integer; default 120; range 1 to 600; Seconds to wait at most
+- `wait`: boolean; default false; Wait for a missing thumbnail to be rendered (otherwise it is queued and the reply says queued)
+
+Note: read-only.
+
+## library.thumbnails
+
+Queue the thumbnails of several presets on the background worker, in the order given, and report each one's state.
+
+- `ids`: array of string; required; Preset ids, most wanted first
+- `size`: integer; default 128; range 64 to 512; Width and height in pixels
+
+Note: read-only.
+
## node.set_visible
Same as scene.set_visible ({id, visible} -> {ids: [id], visible}).
@@ -638,16 +945,30 @@ Same as file.new ({path?, title?, template?} unchanged).
Same as file.open ({path} unchanged).
-- `path`: string; required; A .fshot project or a model file
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `merge`: boolean; default false; Put everything the file holds under one group
+- `name`: string; Name for the imported group (the original file name)
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; A .fshot project, or a model file (glb, gltf, obj, stl, ply, 3mf, fbx, step, stp, iges, igs) opened as a new document; the other options apply to a model only
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## document.import
Same as file.import ({path, name?, options?} unchanged).
-- `frame`: boolean; Frame the camera on the result (default: only when the document was empty)
+- `cad_quality`: value; Tessellation quality for CAD files (STEP, IGES): a preset or {chord, angle}
+- `center`: boolean; default false; Move the model's footprint centre to the origin
+- `frame`: boolean; Frame the camera on the result (default: only when the document had no parts)
+- `merge`: boolean; default false; Put everything the file holds under one group
- `name`: string; Name for the imported group (the original file name)
-- `options`: object; fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
-- `path`: string; required; Model file: glb, gltf, obj, stl or ply
+- `options`: object; Clean-up details (the top-level units, up_axis, stand_on_floor and center win over unit, up_axis, stand_on_floor and centre here); fields centre, detect_instances, generate_normals, smoothing_angle_deg, stand_on_floor, unit, up_axis, weld, wrap_in_group
+- `path`: string; required; Model file: glb, gltf, obj, stl, ply, 3mf, fbx, or step, stp, iges, igs through the CAD worker
+- `stand_on_floor`: boolean; default true; Lift the model so its lowest point rests at height 0
+- `units`: string (auto | mm | cm | m | in | ft); Unit the file is in; auto takes what the file declares, else a guess from its size
+- `up_axis`: string (auto | y | z); Axis that points up in the file; auto takes what the file declares, else y
## document.save
diff --git a/.docs/wiki/Architecture.md b/.docs/wiki/Architecture.md
index 786e5dee..2d869821 100644
--- a/.docs/wiki/Architecture.md
+++ b/.docs/wiki/Architecture.md
@@ -1,7 +1,7 @@
# Architecture
-- `native/` is one Cargo workspace. `fsh-core` holds maths, colour and the sampler; `fsh-scene` the document and its commands; `fsh-accel` the BVH; `fsh-materials` the surface model; `fsh-io` and `fsh-format` the files; `fsh-render-cpu` the CPU path tracer, which is the specification; `fsh-render-gpu` the GPU path tracer on wgpu compute shaders, held to the CPU's picture; `fsh-commands` the command registry, `dispatch`, device choice and the crash journal; `fsh-cli` the `formshot-engine` program. `fsh-py` and `fsh-wasm` bind the same registry for Python and the browser, and `fsh-wasm` also runs the GPU tracer in the window on WebGPU.
-- Every command is declared once (88 catalogue entries). The window, the command line, the MCP server and the agent skills read the same catalogue.
+- `native/` is one Cargo workspace. `fsh-core` holds maths, colour and the sampler; `fsh-scene` the document and its commands; `fsh-accel` the BVH; `fsh-materials` the surface model; `fsh-io` and `fsh-format` the files (with 3MF and FBX readers and the Form family's hand-off formats); `fsh-cad` STEP and IGES through FormCAD's kernel worker, a separate program; `fsh-render-cpu` the CPU path tracer, which is the specification; `fsh-render-gpu` the GPU path tracer on wgpu compute shaders, held to the CPU's picture; `fsh-commands` the command registry, `dispatch`, device choice and the crash journal; `fsh-cli` the `formshot-engine` program. `fsh-py` and `fsh-wasm` bind the same registry for Python and the browser, and `fsh-wasm` also runs the GPU tracer in the window on WebGPU.
+- Every command is declared once (121 catalogue entries); the command groups added with import, CAD, hand-offs, materials and the library live in their own modules under `fsh-commands/src/ext/`. Material slots and graphs compile to one small program that both tracers run, and the material library's presets live in `assets/library/`. The window, the command line, the MCP server and the agent skills read the same catalogue.
- `frontend/` is a vanilla TypeScript app on Vite. The engine client builds no UI; the shell renders once and patches text and attributes in place. The viewport draws Solid, Wireframe and Material preview itself with WebGL2 and shows the path tracer as streamed frames from the engine, or through WebGPU in the window when that works.
- `backend/` is the FastAPI service. It serves the built frontend, the projects library, the engine bridge (with the engine's crash journal in the data folder), the binary mesh and project snapshot routes for the viewport, and `/mcp`.
- `src-tauri/` is the Tauri 2 shell: a splash window, the frozen service started as a sidecar, the main window opened on the service's page, the service stopped on exit.
diff --git a/.docs/wiki/CAD-and-Hand-offs.md b/.docs/wiki/CAD-and-Hand-offs.md
new file mode 100644
index 00000000..d309aa91
--- /dev/null
+++ b/.docs/wiki/CAD-and-Hand-offs.md
@@ -0,0 +1,20 @@
+# CAD and Hand-offs
+
+## STEP and IGES
+
+STEP and IGES files are opened by FormCAD's kernel worker, a separate program built on OpenCascade. FormShot does not include it: download it once from **Preferences > CAD Import** (or the Download line in the import sheet, or `./formshot cad fetch`). The download is checked file by file against a published record before it is installed in your cache folder. `./formshot cad status` tells whether it is there.
+
+- **Quality.** Draft, Medium (default), High, Ultra, or Custom (the largest gap between the mesh and the surface as a share of the model's size, and an angle). The default is set on the CAD Import page.
+- **What comes in.** Assemblies as groups, one part per body, colours as materials (face colours of STEP files and solid colours of IGES files are read from the file itself), identical bodies sharing one mesh. The STEP or IGES file is kept inside the project.
+- **Re-tessellate.** **Scene > Re-tessellate CAD Parts** rebuilds the selected CAD parts, or all of them, at another quality. Each part keeps its name, position, material, visibility and selection, and it is one undo step.
+- **Limits.** The worker reports no progress inside one body, so a big file waits on one step. Starting the worker can take a while on a busy machine; FormShot waits up to 120 s for it (`FORMSHOT_CAD_HELLO_TIMEOUT` changes that). Only tested on Linux.
+
+## Hand-offs from the Form apps
+
+FormShot picks up what the other Form apps hand over:
+
+- **FormSculpt** and **FormFabric** send models through their GoF folder; FormShot takes the entries meant for any app.
+- **FormSurface** exports painted maps (in its own names or any of its templates, with texture sets and UDIM tiles) and its OBJ; FormShot puts the maps on the matching materials as textures with the right roles.
+- **FormCAD** models (GLB, 3MF) arrive with their title and design unit; its STEP files go through the CAD worker.
+
+While the FormShot window is open, the service watches those folders. Nothing comes in on its own: each arrival asks **Decline**, **Open once** or **Always allow** for that app, and whether to add it to this document or open it as a new one. **Preferences > Hand-offs** keeps the choice per app (ask, always, block) and shows the watched folders. **File > Open a Hand-off** lists everything waiting. A hand-off is one undo step, and every node records which app it came from. Agents use the same `handoff.inspect` and `handoff.open` tools, under the same consent as any other change.
diff --git a/.docs/wiki/GPU-Engine.md b/.docs/wiki/GPU-Engine.md
index 4d26c1c1..e50ebdbf 100644
--- a/.docs/wiki/GPU-Engine.md
+++ b/.docs/wiki/GPU-Engine.md
@@ -6,14 +6,14 @@
- **Same paths as the CPU.** The same sampler, draw order, BSDF (with the same energy tables), light, environment and emissive tables as `fsh-render-cpu`. The CPU engine is the specification: changes land there first.
- **Two traversal paths.** FormShot's own BVH, flattened into storage buffers, runs wherever compute runs. Hardware ray queries are used where the adapter offers them, and their hits are refined to match the software path exactly. `FORMSHOT_GPU_TRAVERSAL=software|hardware|auto` forces a choice.
-- **Materials are data.** Changing a material writes a record; it never compiles a shader. Switching adaptive sampling is a flag in the frame uniform and never compiles one either.
+- **Materials are data.** Changing a material writes a record; it never compiles a shader. Texture slots, graphs and labels are a small program the kernel interprets, stored with the textures' pixels in the float table; a scene with no such material leaves the interpreter out. Thin film and dispersion are part of the record. Switching adaptive sampling is a flag in the frame uniform and never compiles one either.
- **Render region.** `render.region` limits passes and sample statistics to a rectangle of the image; the rest keeps its samples. The CPU engine does not have this yet and says so.
- **Eight storage buffers.** The scene fits the WebGPU default limit: nodes, triangles, vertex normals, instances, materials, lights, one float table (environment, BSDF energy and emissive blocks) and the film. New data goes into the float table or a uniform, never into a new binding.
- **Bands and budgets.** The film is split into row bands that fit one storage binding, and each pass into dispatches of about 0.1 s, so the operating system's GPU watchdog is never tripped.
## Shader modules
-`bindings`, `math`, `features` and `sampler` are the base; `traverse_common`, `traverse_sw` and `traverse_hw` (selected through the one-line `trace` and `trace_hw`) do traversal; `camera`, `env`, `surface`, `lights`, `catcher`, `bsdf_tables` and `bsdf` are ported from the CPU engine; `integrator` holds the path loop; `kernel` is the megakernel entry, `adaptive` the adaptive-sampling pass, and `plumbing` a minimal smoke kernel.
+`bindings`, `math`, `features` and `sampler` are the base; `traverse_common`, `traverse_sw` and `traverse_hw` (selected through the one-line `trace` and `trace_hw`) do traversal; `camera`, `env`, `surface`, `lights`, `catcher`, `bsdf_tables` and `bsdf` are ported from the CPU engine; `texture`, `procedural` and `program` sample textures, compute the procedural patterns and run material programs; `integrator` holds the path loop; `kernel` is the megakernel entry, `adaptive` the adaptive-sampling pass, and `plumbing` a minimal smoke kernel.
## Measured
diff --git a/.docs/wiki/Home.md b/.docs/wiki/Home.md
index 6406d0c6..9a37e3f9 100644
--- a/.docs/wiki/Home.md
+++ b/.docs/wiki/Home.md
@@ -1,7 +1,7 @@
# FormShot
-The Form family's 3D product renderer. Start with [Getting Started](Getting-Started), then [Architecture](Architecture), [Rendering](Rendering), [GPU Engine](GPU-Engine) and [Viewport](Viewport).
+The Form family's 3D product renderer. Start with [Getting Started](Getting-Started), then [Architecture](Architecture), [Rendering](Rendering), [GPU Engine](GPU-Engine) and [Viewport](Viewport). Getting models and materials in: [Import](Import), [CAD and Hand-offs](CAD-and-Hand-offs), [Materials](Materials) and [Library](Library).
-At 0.2.0 the repository held the shell (launcher, service, window, desktop shell and agent dock), the document and its `.fshot` project file, the CPU path tracer and the command line render. The GPU tracer (0.3.0) and the live viewport (0.4.0) have since landed in the tree: a GPU path tracer that matches the CPU picture, device choice with a fallback to the processor, WebGL2 raster modes with selection and a gizmo, and an optional engine in the window through WebAssembly and WebGPU. FormShot is unreleased.
+At 0.2.0 the repository held the shell (launcher, service, window, desktop shell and agent dock), the document and its `.fshot` project file, the CPU path tracer and the command line render. The GPU tracer (0.3.0) and the live viewport (0.4.0) have since landed in the tree: a GPU path tracer that matches the CPU picture, device choice with a fallback to the processor, WebGL2 raster modes with selection and a gizmo, and an optional engine in the window through WebAssembly and WebGPU. Since then import (3MF, FBX, background jobs, reimport, embedded textures), STEP and IGES through FormCAD's kernel worker, hand-offs from the other Form apps, material types, texture slots, a node graph with procedural patterns, and a library of 249 measured and published presets have landed, with image labels, thin film and dispersion, and textures and material graphs rendered by both path tracers. FormShot is unreleased.
GPU rendering has run only on software drivers (Vulkan through lavapipe and SwiftShader, OpenGL through llvmpipe), and the path tracer in the window has not drawn a frame yet; the window shows streamed frames from the engine instead. [Rendering](Rendering) lists every known limit.
diff --git a/.docs/wiki/Import.md b/.docs/wiki/Import.md
new file mode 100644
index 00000000..c7849f35
--- /dev/null
+++ b/.docs/wiki/Import.md
@@ -0,0 +1,24 @@
+# Import
+
+FormShot reads glTF and GLB, OBJ with MTL, STL, PLY, 3MF and FBX itself, and STEP and IGES through FormCAD's kernel worker (see [CAD and Hand-offs](CAD-and-Hand-offs)). FBX is read by the desktop engine only. The full description is `docs/IMPORT.md` in the repository.
+
+## Bringing a model in
+
+- **File > Import Model** (Mod+I), a drop on the viewport, or a drop on Home (which starts a new project named after the file). In a browser the file and the files beside it (glTF buffers and images, OBJ's MTL and maps) are uploaded to the service; on the desktop FormShot reads the file where it is.
+- The import sheet shows what the file holds before anything changes: format, size, triangles, parts and materials, and the unit the file declares or the one FormShot guesses from its size. A guessed unit is marked; check it.
+- Options: units (automatic, mm, cm, m, in, ft), up axis (automatic, Y or Z), stand on the floor, centre, frame the camera, merge everything into one group, and the CAD quality for STEP and IGES. The sheet remembers your choices. With several files, Import All applies them to the rest.
+- The import runs in the background with its progress in the sheet; Cancel leaves the document exactly as it was. A finished import is one undo step.
+
+## What comes in
+
+- Parts, groups and their names; repeated parts share one mesh, also when they are rotated or mirrored copies.
+- Materials with their texture maps as texture slots (base colour, roughness, metalness, normal, emission, opacity, bump and more), including glTF's material extensions and texture transforms. PNG, JPEG, HDR and EXR images are stored inside the project, so it can be moved and still find them; other image formats are skipped with a note.
+- Every imported part remembers its file and where it sat in it.
+
+## Reimport
+
+**File > Reimport** reads the files of the selected parts again (all imported parts when nothing is selected). Parts are matched by their place in the file, then by name, then by shape: they keep their position and material, take the new shape, and keep their identity; new parts arrive and parts gone from the file are hidden, not deleted. **File > Recent Imports** lists the last eight. A model uploaded from a browser is kept for 24 hours for this.
+
+## Limits
+
+glTF materials with masked alpha cut sharply at their cutoff; blended ones fade. FBX NURBS, skins, blend shapes, cameras and lights are not read. Files given to the desktop app when it starts open in the import sheet; folders given that way do not.
diff --git a/.docs/wiki/Library.md b/.docs/wiki/Library.md
new file mode 100644
index 00000000..b2815b11
--- /dev/null
+++ b/.docs/wiki/Library.md
@@ -0,0 +1,18 @@
+# Library
+
+The Library panel on the left holds 249 material presets in twelve categories: Metal, Plastic, Glass, Paint, Rubber, Fabric, Wood, Stone, Ceramic, Liquid, Gem and Emissive. The full description is `docs/LIBRARY.md` in the repository.
+
+## Where the numbers come from
+
+Every preset is FormShot's own, made from public physical data: metal colours and edge tints computed from measured optical constants (the refractiveindex.info database, CC0), refractive indices and dispersion of glasses, plastics, liquids and gems from measurements and published tables, and lamp colours from their spectra. Finish roughness and dye colours are chosen by hand, and each preset says which of its numbers were chosen and why (the details popover shows its sources).
+
+## Using it
+
+- **Find.** Search by name, tag, category or type (accents and case do not matter). Shelves: All, Favorites, Recent, In project (the document's own materials) and User (your saved presets). Category counts follow the shelf and the search.
+- **Apply.** Double-click a tile or press Enter to put it on the selected parts. The tile menu also applies it to the whole group or to every part with the same material. Or drag the tile onto a part in the viewport: Alt takes the whole group, Shift every part with the same material. One undo step either way, and applying the same preset twice reuses the material.
+- **Favourites and your own presets.** Star a preset from its tile menu. **Save Selected Material to Library** (the plus button) keeps a material of yours on the User shelf.
+- **Thumbnails** are rendered by FormShot's own path tracer on its material ball the first time a tile is seen, and kept.
+
+## Limits
+
+Wood, stone and metallic paint presets get their procedural graph when applied, and thin-film presets (anodised titanium, pearl paints) their film, in both path tracers; Material preview shows only an approximation of the patterns. A saved preset keeps parameters only, not textures or a graph.
diff --git a/.docs/wiki/Materials.md b/.docs/wiki/Materials.md
new file mode 100644
index 00000000..27d3f683
--- /dev/null
+++ b/.docs/wiki/Materials.md
@@ -0,0 +1,31 @@
+# Materials
+
+Every FormShot material is the same layered surface model (base, specular, transmission, coat, fuzz, emission and the rest, after OpenPBR Surface) with a type that gives it sensible starting values and decides which settings its page shows. The full description is `docs/MATERIALS.md` in the repository.
+
+## Types
+
+Generic, Plastic, Clear plastic, Metal, Brushed metal, Paint, Metallic paint, Glass, Thin glass, Liquid, Gem, Rubber, Fabric, Ceramic, Diffuse, Emissive, Wood and Stone. Metal offers ten measured metal colours. Wood, Stone and Metallic paint start with a procedural graph (rings, veins, flakes). Changing the type keeps the current values or resets them to the new type, as you choose.
+
+## The Material page
+
+In the inspector: the list of the document's materials with a swatch each (new, assign to selection, duplicate, rename, delete), the parameters of the selected material's type (All parameters shows every field), Textures, Graph and Save to library. A drag on a value is one undo step.
+
+## Texture slots
+
+A texture can drive a material's base colour, roughness, metalness, specular weight, coat, coat roughness, emission, opacity, normal, bump or displacement. Each slot sets how the image is placed (uv set, box, planar, cylindrical or spherical projection; offset, scale, rotation), repeated (repeat, clamp, mirror), filtered, read (colour space, channel, range, invert, multiply) and how strong a normal or bump map is. Choose an image from disk; imported models bring their maps as slots already.
+
+## The node graph
+
+**Edit graph** opens the node editor: images, mapping, mix, maths, colour ramps, normal maps, bump, and ten procedural patterns (noise, fractal noise, Voronoi, checker, gradient, wave, brushed lines, flakes, wood and marble). Connect node outputs to the material's inputs on the output node; links that cannot work are refused with the reason. Tab adds a node at the pointer, L connects, ? lists the keys. Every change is undoable, and a drag on a value is one step. Procedural patterns fade fine detail to its average when it gets smaller than a pixel, so they do not shimmer.
+
+## Where you see it
+
+Both path tracers (processor and graphics card) render slots, graphs and labels, with PNG, JPEG, HDR and EXR images filtered to the pixel's size, and they agree with each other. An image that is missing or cannot be read shows the slot's fallback colour, and the render status says which. The viewport's **Material preview** mode shows slots and graphs from small maps the engine bakes, on parts with texture coordinates; projected and procedural materials are approximated there, image slots and labels show their images. Images you choose (for slots, labels or the environment) are stored inside the project, so it can be moved.
+
+## Labels
+
+The **Labels** section of the Material page prints images onto the parts that wear the material, like stickers or printed logos: add one from an image, then **Place on Surface** and click where it goes on the part. Set its width and height (in millimetres, linked to the image's proportions), rotation, depth (how far through the part it reaches), opacity, one- or two-sided, and optionally its own roughness and metalness. Drag rows to change which label prints on top. Every change is undoable.
+
+## Thin film and dispersion
+
+A thin film on a surface gives soap-bubble and anodised-metal colours that shift with the angle (thickness in micrometres, the film's refractive index, and a weight). Dispersion splits light by colour in glass and gems (the Abbe number and a scale): a prism shows separate red, green and blue images, a diamond coloured fire. Both work in both path tracers.
diff --git a/.docs/wiki/_Sidebar.md b/.docs/wiki/_Sidebar.md
index bd960cd7..e1f42014 100644
--- a/.docs/wiki/_Sidebar.md
+++ b/.docs/wiki/_Sidebar.md
@@ -4,3 +4,7 @@
- [Rendering](Rendering)
- [GPU Engine](GPU-Engine)
- [Viewport](Viewport)
+- [Import](Import)
+- [CAD and Hand-offs](CAD-and-Hand-offs)
+- [Materials](Materials)
+- [Library](Library)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8f2384a0..bc926309 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,82 @@
Versions follow `v*.*.*` with dots. Dates are UTC. FormShot has not been released; these versions exist in the repository only.
+## 0.6.0 · 2026-12-02
+
+Materials get types, texture maps, a node graph and labels, both path tracers render them, and a library of 249 presets made from measured and published data sits in the left panel.
+
+### Added
+
+- Eighteen material types (Generic, Plastic, Clear plastic, Metal, Brushed metal, Paint, Metallic paint, Glass, Thin glass, Liquid, Gem, Rubber, Fabric, Ceramic, Diffuse, Emissive, Wood and Stone), each a preset of the one layered surface model, with ten measured metal colours. `material.create {type}` starts from a type, and `material.set_type` keeps the values or resets them to the new type.
+- Texture slots: an image can drive a material's base colour, roughness, metalness, specular weight, coat, coat roughness, emission, opacity, normal, bump or displacement, with a uv set or a box, planar, cylindrical or spherical projection, offset, scale and rotation, repeat, clamp or mirror, filtering, colour space, channel, range, invert and multiply (`material.set_slot`, `material.clear_slot`).
+- A material node graph (`material.set_graph`) with image, mapping, mix, maths, colour ramp, normal map and bump nodes and ten procedural patterns: noise, fractal noise, Voronoi, checker, gradient, wave, brushed lines, flakes, wood and marble. Patterns fade detail finer than a pixel to its average. Wood, Stone and Metallic paint start with a graph, and a procedural normal output can be linked straight to a material's normal.
+- Slots, graphs and labels compile to a small material program that agents can read with `material.program`; materials without them stay exactly as they were.
+- Both path tracers render texture slots, graphs and labels: the processor runs the program at every hit and the graphics card runs the same program in its shader, with the textures packed into its existing buffers (opaque 8-bit images at half the memory). Fine detail is filtered by each pixel's footprint (ray cones), so distant textures and patterns do not shimmer.
+- Textures load from PNG (8 and 16 bit), JPEG (baseline and progressive), Radiance HDR and OpenEXR (scanline; uncompressed, RLE, ZIP, PIZ and PXR24). A missing or unreadable image shows its slot's fallback colour and is named in `render.status`; a texture file changed on disk is picked up at the next render.
+- Texture maps of imported glTF, OBJ, 3MF and FBX files arrive as material texture slots, with glTF's texture transforms and material extensions; masked glTF alpha cuts sharply at its cutoff. Every reader stores texture coordinates with v pointing up.
+- Images found by an import, and images you choose for a slot, a label or the environment, are stored inside the project (named by their SHA-256; projects with the older names still open), so a moved project keeps its textures and its HDRI. Environments can be OpenEXR as well as Radiance HDR.
+- Labels: images printed onto parts like stickers (`material.label_add`, `label_set`, `label_remove`, `label_move`, `material.labels`), with size, rotation, depth, opacity, one or two sides and their own roughness and metalness; the Labels section of the Material page lists them and places one with a click on the part.
+- Thin-film iridescence (soap bubbles, anodised metals, pearl paints) and dispersion in glass and gems (a prism shows separate colour images, a diamond coloured fire), on both tracers.
+- The Material page in the inspector: the material list with swatches, the type's parameters (and all of them on request), texture slots with every setting, the graph's state, labels and Save to library. A drag on a value is one undo step. Images are chosen from disk, through `POST /api/textures` in a browser.
+- The graph editor window: add nodes with Tab, connect with drags or L, copy and paste between materials, a colour ramp editor, links that cannot work refused with the reason, and every change undoable; a value drag is one undo step through `material.set_graph {merge: true}`.
+- Material preview in the viewport shows texture slots, graphs and labels from maps the engine bakes with the real images (`material.preview_maps`), sampled by the mesh's texture coordinates, with GGX highlights.
+- The window's own WebGPU engine receives the document's textures: embedded ones from the project, others through `GET /api/engine/texture`, decoded in a background worker.
+- The material library: 249 presets in twelve categories, each citing the measured data, published tables or authored choices behind its numbers (metal colours and edge tints computed from the refractiveindex.info database, CC0). `library.list` searches and ranks; `library.apply` puts a preset on parts, their group or every part with the same material as one undo step, reusing an identical material; favourites, recent presets and your own saved presets (`library.save`, `library.remove`) are kept in your user data folder.
+- Library thumbnails rendered by FormShot's own CPU path tracer on its material ball, in the background, cached by preset and served by `GET /api/library/thumbnail/`.
+- The Library panel: search, shelves (All, Favorites, Recent, In project, User), category counts, three tile sizes, a virtual grid that scrolls thousands of tiles with twenty nodes, apply by double-click, Enter or by dragging a tile onto a part (Alt for the whole group, Shift for every part with the same material), details with the preset's sources, and Save Selected Material to Library.
+- The desktop app carries the library as a bundle resource and tells the service where it is; `FORMSHOT_LIBRARY` points the engine at another one.
+- Editing a material, applying a library preset or assigning a new material refreshes only the parts that wear it, on the graphics card as on the processor, and the rest of the picture keeps its samples.
+- Steep normal and bump maps no longer leave black rims on polished metal: both tracers keep the reflection just above the surface. When the graphics card fails and the processor takes over, textures come along.
+- `material.get` returns one material with its textures and a summary of its program, and `cad.parts` lists the CAD parts; the window uses them instead of reading the whole project.
+- Edits that agents make through the service or MCP show in the open window at once, and undo and redo stay current after edits that change nothing on screen.
+- `FORMSHOT_CAD_HELLO_TIMEOUT` sets how long a starting CAD worker may take (120 s by default), and a save writes only the CAD sources some part still uses.
+- The material, graph, library and labels pages and the viewport's texture notes are translated into the 23 interface languages.
+
+### Checked
+
+- Materials without slots or graphs render byte-identically to the previous engine, every one compiles to a constant program equal to its old inputs, and older projects and crash journals load and resave byte for byte.
+- All 18 types create, compile and survive a save and reopen; bump of a sloped height gives the expected normal; slot transforms and projections match values worked out by hand.
+- The ten procedural patterns agree between the processor and the graphics card's shader language to within 5.4e-7 over 8192 points each, on software Vulkan only.
+- Untextured scenes render byte-identically to before on the processor, and the graphics card stays within 0.00001 of it on software Vulkan and OpenGL. 77 programs evaluated value by value agree within 1.4e-5 apart from bump through cylindrical and spherical projections. Bubbles, anodised metals, a prism and a diamond agree within 0.00007.
+- Thirty scenes (Khronos glTF samples, every material type, procedurals, labels, thin film, dispersion, normal maps, blended and masked alpha, a preset per library category; under the sky and under a CC0 HDRI) agree between the processor and software Vulkan within 0.0009, with no NaN pixels; constant scenes take the same time as before on both tracers.
+- Applying a preset to one band of a product cleared the same 5,600 of 76,800 pixels on both tracers, all of the changed pixels inside that region.
+- Thin film matches an exact spectral calculation to 0.003 on average over glass and stays energy-conserving (white furnace 0.986 to 1.008).
+- The JPEG reader agrees with libjpeg within 4 levels and the OpenEXR reader with the OpenEXR library bit for bit; thousands of damaged files gave errors, never a crash.
+- glTF, OBJ, 3MF and FBX projects with textures, and a project with images chosen by hand, were moved to a fresh folder, their source images deleted, reopened and rendered with every texture; they also survived a crash and recovery.
+- The Material page, the graph editor and the Library panel ran in headless Chrome against the engine, with drags as one undo step and no layout shift. The library lists 249 presets without warnings; a deliberately damaged copy gave 247 presets and seven warnings and no crash. Thumbnails of every category and all graph presets were looked at.
+- Not yet: the window's own WebGPU engine has run with textures only against a stand-in viewport; no real graphics card, no desktop bundle; the brushed-metal streak direction is not yet tied to the part.
+
+## 0.5.0 · 2026-12-02
+
+Models come in more ways: 3MF, FBX, STEP and IGES, in the background with a sheet that shows what a file holds, and from the other Form apps.
+
+### Added
+
+- 3MF and FBX import (FBX in the desktop engine), alongside glTF, GLB, OBJ, STL and PLY. Polygons are ear-clipped, groups in OBJ files become nodes, STL facet colours become vertex colours, and tangents are made for meshes with texture coordinates.
+- Repeated parts are found also when they are rotated or mirrored copies, and share one mesh.
+- `file.import` takes `units`, `up_axis`, `stand_on_floor`, `center`, `frame`, `merge` and `cad_quality`; older calls keep working. A guessed unit now comes with a confidence.
+- `import.probe` tells what a file holds without changing the document.
+- `import.start`, `import.status` and `import.cancel` run an import in the background with its stage and progress; a cancelled import leaves the document exactly as it was, a finished one is one undo step, and a job started before another document was opened reports stale and changes nothing.
+- `file.reimport` reads changed files again: parts keep their material, position and identity, new parts arrive and missing ones are hidden.
+- Imported parts remember their file and where they sat in it (`source.path`, `source.node`).
+- STEP and IGES through FormCAD's kernel worker: assemblies, colours (also STEP face colours and IGES solid colours read from the file) and shared parts at draft, medium, high, ultra or a custom quality. The source file is kept inside the project and the crash journal.
+- `./formshot cad fetch` and Preferences > CAD Import download the CAD worker and check every file against a pinned record; `cad.status` says whether it is installed and what it can report.
+- `scene.retessellate` rebuilds CAD parts at another quality, and the new `scene.set_part_mesh` swaps a part's mesh, so parts keep their ids, materials and selection. Scene > Retessellate opens a dialog for it.
+- Hand-offs from the Form apps: what FormSculpt and FormFabric send through their GoF folder, FormSurface's painted maps and FormCAD's models are picked up while the window is open and offered for the person's answer first (decline, open once, always allow that app). `handoff.inspect` and `handoff.open` serve the window and agents.
+- The import sheet (Mod+I, drops on the viewport and on Home): the file's size, counts and unit, the options, progress and Cancel, Import All for several files, File > Reimport and Recent Imports. Browser uploads go to `POST /api/imports` and are removed after a day without changes.
+- Files given to the desktop app open: a project opens, models (now also 3MF, FBX, STEP and IGES) go to the import sheet.
+- The command line takes import options on `render`, `convert` and `info`, and gains `probe` and `reimport`.
+- The import sheet, the hand-off prompts and settings, and the CAD settings and dialog are translated into the 23 interface languages.
+
+### Checked
+
+- 94 files (3MF Consortium samples, Khronos glTF samples, the ufbx test files and our own) imported, and over 40,000 damaged copies gave errors, never a crash.
+- Ten models with two option sets each imported, saved, reopened and saved again with identical documents.
+- A 1.8 million triangle OBJ was cancelled at 23 % with the document unchanged.
+- STEP and IGES ran with the real worker on Linux x86_64: a gearbox at four qualities, retessellation from draft to ultra with every part id kept, re-import of a changed file, cancel and timeout with no worker left running, and recovery after a crash with the source file deleted. The worker itself reports no progress within a file, no per-face colours and no assembly transforms.
+- Hand-offs ran with real exports from FormSculpt, FormFabric and FormCAD and with FormSurface folders written by hand, through the engine and the window's prompt in headless Chrome.
+- Not run: macOS and Windows, the Tauri desktop build (the open panel, native drops and launch opens ran against a stub only), and a live FormSurface export.
+
## 0.4.0 · 2026-12-02
The viewport is live: you can see the scene in four modes, pick and move parts in it, and keep a path-traced picture refining while you work.
diff --git a/CLAUDE.md b/CLAUDE.md
index 0afc7a64..10292251 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -4,8 +4,12 @@
## Repo layout notes
-- `assets/` is repo-level art (the README logo and the desktop icon source), not app runtime assets: runtime files live in `frontend/public/` and `frontend/src/`.
+- `assets/` is repo-level art (the README logo and the desktop icon source), not app runtime assets: runtime files live in `frontend/public/` and `frontend/src/`. The one exception is `assets/library/` (below).
- `native/crates/fsh-commands` is the only place an engine command is declared (its catalogue is built on `fsh-scene`'s command table). The window, the CLI (`formshot-engine`), the MCP server and the agent skills read its catalogue; never add a tool name anywhere else. The one exception is window-only service commands that must never reach MCP (`terminal.*`, `claudecode.*`, `agents.*`, `chat.*`, `prefs.*`), which live on the service's bus in `backend/app/agent/`.
+- Command groups added since the first catalogue live one module each in `native/crates/fsh-commands/src/ext/` (`import.rs` with `import/`, `cad.rs`, `handoff.rs`, `materials.rs`, `library.rs` with `library/`): a module lists its commands in `COMMANDS` and answers them in `dispatch`, and `ext/mod.rs` chains the groups into the catalogue. Commands that change the document as data still go in `fsh-scene`'s table. When several people build at once, a new group or window module is first committed as an empty reserved file (the reserved-module pattern: `ext/*.rs`, `backend/app/routers/*.py`, `frontend/src/ui//index.ts`, `fsh_io::family`), so ownership is decided by path (`frontend/src/ui/labels/index.ts` began as such a stub and is now the Labels section).
+- `native/crates/fsh-cad` reads STEP and IGES through FormCAD's kernel worker, a separate program run as a child process and never linked. The engine never downloads it: `backend/app/routers/cad.py` (and `./formshot cad fetch`, `setup/cad_worker`) installs it into the user cache after checking a pinned record. fsh-cad is a native-only dependency.
+- `assets/library/` holds the material library's presets (`materials//.json`) and their generated `index.json`, with its own README of sources and licences; it is app data shipped as a Tauri bundle resource, unlike the rest of `assets/`. Preset ids never change once released.
+- Material slots and graphs compile to a material program (`fsh-scene` compile.rs, `fsh-materials` program.rs and interp.rs); a constant material must stay a constant program whose `base` equals the old per-material inputs. `docs/MATERIALS.md`, `docs/IMPORT.md` and `docs/LIBRARY.md` describe the import, materials and library work.
- The document changes only through commands. `fsh-scene`'s `Editor` owns the document, the undo history and the selection; the renderers read an immutable `RenderSnapshot` from `flatten()`, never the live document.
- `fsh-render-cpu` is the specification engine: the GPU tracer (`fsh-render-gpu`, planned for 0.3.0 and now built) must match its pictures within 0.005 mean absolute difference at equal samples, so a change to sampling, lights or materials lands on the CPU path first (and in its public `spec` module), then is ported to WGSL. GPU work has run only on software drivers; say so in every report. `docs/GPU-ENGINE.md` holds the buffer layouts and the shader map.
- `fsh-render-gpu` keeps 8 storage buffers per shader stage (the WebGPU default); never add a storage binding, and change `src/layout.rs` and `src/shaders/bindings.wgsl` together.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d1ad19a8..63394867 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -2,7 +2,7 @@
Thank you for helping. FormShot is the Form family's 3D product renderer: open a model,
dress its parts in materials, light it and render it in one window, with no account,
-running on your own computer, and open to agents over MCP. It is at 0.4.0 and not
+running on your own computer, and open to agents over MCP. It is at 0.6.0 and not
released yet, so the most useful help now is careful use and clear reports.
## Where to start
diff --git a/NOTICE.md b/NOTICE.md
index 5ec2cd9a..bab2b339 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -4,7 +4,7 @@ FormShot is licensed under the Apache License 2.0 (see `LICENSE`). Copyright 202
This file is the human list: what each component is and why it is there. `THIRD-PARTY-NOTICES.txt` lists every package that ships with its version and licence; `./formshot notices` replaces it with the full licence texts (copyright lines, conditions and disclaimers) from the installed Python packages, `frontend/package-lock.json`, `native/Cargo.lock`, `src-tauri/Cargo.lock` and the cargo registry, and `./formshot notices --check` checks it covers what ships. It ships in every installer beside this file, is frozen into the service, and is shown in Preferences under About.
-FormShot 0.4.0 is unreleased. Licences marked "to confirm" below were not read from package metadata on the machine that wrote this file, and are confirmed when the lock files are complete and `./formshot notices` runs.
+FormShot 0.6.0 is unreleased. Licences marked "to confirm" below were not read from package metadata on the machine that wrote this file, and are confirmed when the lock files are complete and `./formshot notices` runs.
## Included in this repository
@@ -29,6 +29,10 @@ FormShot 0.4.0 is unreleased. Licences marked "to confirm" below were not read f
| regex, serde, serde_json | MIT OR Apache-2.0 (serde and serde_json read from the registry; regex to confirm) | shell and engine |
| windows-sys (Windows), objc2, objc2-app-kit, objc2-foundation (macOS) | to confirm | desktop shell platform calls |
| rayon 1.12.0 and rayon-core 1.13.0 | MIT OR Apache-2.0 | parallel BVH builds and render tiles |
+| roxmltree 0.21.2 | MIT OR Apache-2.0 | reads the XML inside 3MF files (fsh-io) |
+| bevy_mikktspace 1.0.0 | Zlib AND (MIT OR Apache-2.0) | MikkTSpace tangents for imported meshes (fsh-io); the package carries the MIT and Apache texts, its README names the Zlib licence of the original MikkTSpace code |
+| zune-jpeg 0.5.15 and zune-core 0.5.4 | MIT OR Apache-2.0 OR Zlib | decodes JPEG textures, baseline and progressive (fsh-io), in the engine and in the window's WebAssembly engine |
+| ufbx 0.11.5 (with the ufbx C library it compiles) | MIT OR Unlicense (used under MIT) | reads FBX files in native builds (fsh-io); the crate package carries no licence file: its Cargo.toml declares the licence and the upstream ufbx repository's LICENSE gives MIT or public domain |
| crossbeam-deque, crossbeam-epoch, crossbeam-utils, either | MIT OR Apache-2.0 | pulled in by rayon |
| itoa, zmij, memchr | MIT OR Apache-2.0; MIT; Unlicense OR MIT (used under MIT) | pulled in by serde_json |
| serde_core, serde_derive, proc-macro2, quote, syn, unicode-ident | MIT OR Apache-2.0; unicode-ident (MIT OR Apache-2.0) AND Unicode-3.0 | serde's derive, compiled at build time |
@@ -45,7 +49,25 @@ FormShot 0.4.0 is unreleased. Licences marked "to confirm" below were not read f
| Vite 8.3.5 with rolldown, postcss and lightningcss | MIT; lightningcss MPL-2.0 | builds the window; lightningcss is used unmodified at build time and none of it is in the app |
| TypeScript 7.0.2 | Apache-2.0 | type check |
| @tauri-apps/cli 2.12.5 | Apache-2.0 OR MIT | desktop builds |
+| cc 1.12.0, find-msvc-tools 0.1.16, shlex 2.0.1 | MIT OR Apache-2.0 | compile ufbx's C source when the engine is built; none of it is in the app |
+
+## Downloaded on request, not shipped
+
+| Program | License | Notes |
+| --- | --- | --- |
+| FormCAD kernel worker `formcad-kernel` (release occt-8.0.1, built on OpenCascade by nodemode-ai) | as listed in its release record `occt-licence.json`, which is pinned by SHA-256 and checked before install | opens STEP and IGES files; downloaded into the user cache folder only when the person asks (`./formshot cad fetch` or Preferences > CAD Import), run as a separate process and never linked into FormShot |
+
+## Data in the material library
+
+The presets in `assets/library/` are our own work under Apache-2.0. Their numbers come from these sources, cited in each preset's `source` field and in `assets/library/README.md`:
+
+| Source | License | Used for |
+| --- | --- | --- |
+| refractiveindex.info database, M. N. Polyanskiy, Sci. Data 11, 94 (2024), commit e6d15e364f70de1cad8a96a20f75689f2fba8b21 | CC0 1.0 | optical constants of metals, alloys, glasses, polymers, liquids and crystals; each preset also cites the original measurement paper (for example K. M. McPeak et al., ACS Photonics 2, 326 (2015) for gold, silver, copper and aluminium) |
+| CIE 1931 colour matching functions and illuminant D65, as tabulated in colour-science | CIE standard data; colour-science is BSD-3-Clause | spectra to colours at build time; nothing stored |
+| USDA AMS Sucrose Conversion Table (Appendix XV) | US government work | refractive index of sugar solutions |
+| MFA Boston CAMEO gemstone table, GIA Gem Encyclopedia, LibreTexts Gemology, orders of magnitude of luminance | facts cited, no text or tables copied | gem indices and dispersion, lamp and display luminance |
## Trademarks
-glTF is a trademark of the Khronos Group Inc. Other names are the property of their owners. They are used only to describe compatibility and file formats; FormShot is not affiliated with or endorsed by them. FormShot's features carry its own names, and no other product's artwork, presets, materials or code are included.
+glTF is a trademark of the Khronos Group Inc. FBX is a trademark of Autodesk, Inc. Other names are the property of their owners. They are used only to describe compatibility and file formats; FormShot is not affiliated with or endorsed by them. FormShot's features carry its own names, and no other product's artwork, presets, materials or code are included.
diff --git a/README.md b/README.md
index 49a082fd..534cd186 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
-
+
@@ -65,7 +65,7 @@
## Features
-FormShot is at 0.4.0 and has not been released. This is what exists in the repository today:
+FormShot is at 0.6.0 and has not been released. This is what exists in the repository today:
- **The window.** Home with recent projects, four starting templates and a Trash you can restore from; the workspace with the live viewport, a material library panel, an inspector (Scene, Camera, Environment, Image and more) and a status bar; menus, a command palette, Preferences with a shortcut editor, 29 themes and the interface in English and 23 more languages.
- **The live viewport.** Rendered, Material preview, Solid and Wireframe modes (the last three drawn in the window with WebGL2); click and box selection with a selection outline; a move, rotate and scale gizmo in world or local space with snapping; navigation presets for mouse, trackpad and touch; Frame Selection, Frame All, the six views and composition guides; light and camera outlines. While you move the camera the path tracer drops to fast low-resolution passes and climbs back to full resolution when you stop. A chip says what is drawing, on which device, and why the window is not drawing itself when it is not; the island menu picks the device, the viewport quality and adaptive sampling.
@@ -74,8 +74,13 @@ FormShot is at 0.4.0 and has not been released. This is what exists in the repos
- **The CPU path tracer.** The reference renderer: a deterministic sampler, a two-level BVH, next-event estimation with multiple importance sampling, environment importance sampling, the layered surface model, a procedural sky, a studio sweep, a shadow-catcher floor, a thin lens, the develop step (exposure and the Neutral, AgX, ACES, sRGB and raw transforms) and its own a-trous denoiser.
- **The GPU path tracer.** The same picture as the CPU path tracer, written for Vulkan, Metal, Direct3D 12 and OpenGL, with its own BVH traversal and hardware ray queries where the device offers them. Adaptive sampling and reduced-resolution passes work on both engines. When the graphics card cannot render a scene, or fails while rendering, the processor takes over and a note says why. See [`docs/GPU-ENGINE.md`](docs/GPU-ENGINE.md).
- **The engine in the window.** `./formshot engine wasm` builds the engine as WebAssembly so the window can path-trace through WebGPU itself, with a start-up guard that falls back to streamed frames from the service. See [`docs/VIEWPORT.md`](docs/VIEWPORT.md) and the limits below.
-- **Files in and out.** Readers for glTF and GLB, OBJ with MTL, STL and PLY models with a clean-up pass (weld, normals, repeated parts, units, up axis, standing on the floor); PNG and Radiance HDR pictures read and written, OpenEXR (uncompressed float) written.
-- **The command line.** `./formshot render model.glb out.png --samples 256` renders a picture without the window. `./formshot cli` runs the engine's own program, `formshot-engine`, with `render`, `info`, `convert`, `devices`, `bench`, `catalogue`, `dispatch`, `version` and `help`. Run so far: the sample scene renders byte-identical on 1 and 2 threads, a GLB and `.fshot` round trip renders the same picture from both files, and `bench` renders it on the processor, software Vulkan and software OpenGL within 0.00001 mean difference of each other.
+- **Import.** Readers for glTF and GLB, OBJ with MTL, STL, PLY, 3MF and FBX (FBX in the desktop engine) with a clean-up pass (weld, normals, tangents, repeated parts also when rotated or mirrored, units with a guess you can check, up axis, standing on the floor). An import sheet shows what a file holds before anything changes, imports run in the background with progress and a Cancel that leaves the document untouched, and each import is one undo step. Texture maps arrive as material texture slots and PNG, JPEG, HDR and EXR images are kept inside the project. File > Reimport reads changed files again and keeps each part's material and identity. Drop files on the viewport or on Home. See [`docs/IMPORT.md`](docs/IMPORT.md).
+- **STEP and IGES.** Opened by FormCAD's kernel worker, a separate program FormShot downloads on request and checks file by file (`./formshot cad fetch`, or Preferences > CAD Import). Assemblies, colours and shared parts come in at a quality you choose, the file is kept in the project, and Scene > Re-tessellate CAD Parts rebuilds parts at another quality without losing their materials.
+- **Hand-offs from the Form apps.** What FormSculpt and FormFabric send through their GoF folder, FormSurface's painted maps and FormCAD's models are picked up while the window is open and offered for your yes first (decline, open once, always allow that app).
+- **Materials.** One layered surface model with 18 types (plastics, metals with ten measured colours, paints, glass, liquids, gems, rubber, fabric, ceramic, emissive, wood, stone and more), texture slots with projections and transforms, and a node graph editor with image, maths, ramp, normal map and bump nodes and ten anti-aliased procedural patterns, image labels projected onto parts and placed with a click, thin-film iridescence (soap bubbles, anodised metals) and dispersion in glass and gems. Both path tracers render all of it, with PNG, JPEG, HDR and EXR textures filtered by the pixel's footprint; an image you choose is stored inside the project, and editing a material refreshes only the parts that wear it on either tracer. The Material page in the inspector edits them. See [`docs/MATERIALS.md`](docs/MATERIALS.md).
+- **The material library.** 249 presets in twelve categories made from measured optical data and published tables, each citing its sources; search, favourites, recent and your own saved presets; thumbnails rendered by FormShot's own path tracer; apply by double-click or by dragging onto a part, to a part, its group or every part with the same material, as one undo step. See [`docs/LIBRARY.md`](docs/LIBRARY.md).
+- **Pictures.** PNG and Radiance HDR read and written, OpenEXR read (scanline, uncompressed or RLE, ZIP, PIZ and PXR24) and written (uncompressed float), JPEG read.
+- **The command line.** `./formshot render model.glb out.png --samples 256` renders a picture without the window. `./formshot cli` runs the engine's own program, `formshot-engine`, with `render`, `info`, `convert` (with import options), `probe`, `reimport`, `devices`, `bench`, `catalogue`, `dispatch`, `version` and `help`. Run so far: the sample scene renders byte-identical on 1 and 2 threads, a GLB and `.fshot` round trip renders the same picture from both files, and `bench` renders it on the processor, software Vulkan and software OpenGL within 0.00001 mean difference of each other.
- **The agent dock.** A shell, Chat and tabs for Claude Code, Codex, Cursor and Antigravity, each connected to FormShot's MCP server.
Everything else in this README marked planned is on the plan with the version it is due in, and is not built yet.
@@ -99,8 +104,11 @@ The output names the device that drew the picture, and adds a `note:` line when
- Hardware ray queries have run only on a software implementation (lavapipe), never on ray-tracing hardware.
- The path tracer in the window (WebGPU) has not drawn a frame anywhere yet: the software WebGPU compiler runs out of memory on the kernel, and no browser with a real graphics card was available. The window uses streamed frames unless a real GPU proves otherwise.
- Region render works on the GPU engine only: on the processor `render.region` answers that regions are not supported on that device yet and the whole picture renders.
-- The GPU engine restarts the whole picture after a material change; only the CPU engine keeps the samples outside the edited parts.
-- Edits made outside the window (by an agent or the command line) show in the window only after its next own change.
+- Edits made with the command line run in their own engine process and do not show in an open window; edits by agents through the service and MCP do.
+- Material preview shows texture slots, graphs and labels from small maps baked on a 1 m square, so projected and procedural materials are approximated there; the Rendered mode is exact.
+- Textured materials in the window's own WebGPU path tracer have run only against a stand-in viewport; dispersion stays within the three colour channels, and shadows through glass are opaque.
+- STEP and IGES through the CAD worker have run on Linux x86_64 only; the worker reports no progress inside one body.
+- FBX is read by the desktop engine, not by the engine in the browser.
- The Tauri desktop build has not been run on any platform.
## Everything in the box
@@ -108,23 +116,23 @@ The output names the device that drew the picture, and adds a `note:` line when
-
Today (0.4.0)
- Home and projects · Scene tree · Camera, environment and image settings · CPU path tracer · GPU path tracer · Live viewport with raster modes, selection and gizmo · Region render on the GPU · Device choice and bench · Develop and tone maps · .fshot projects · Crash recovery commands · Command line render · MCP · Agent dock
+
Today (0.6.0)
+ Home and projects · Scene tree · Camera, environment and image settings · CPU path tracer · GPU path tracer · Live viewport with raster modes, selection and gizmo · Region render on the GPU · Device choice and bench · Develop and tone maps · .fshot projects · Crash recovery commands · Import with background jobs and reimport · STEP and IGES through FormCAD's kernel · Hand-offs from the Form apps · Material types, texture slots, the node graph and labels, rendered on both tracers · Thin film and dispersion · Material library with 249 presets · Command line render · MCP · Agent dock
Planned
- The WebGPU path tracer in the window proven on a real graphics card, and region render on the CPU engine (after 0.4.0) · Import, CAD through FormCAD's kernel, materials and the library (0.5.0 to 0.6.0) · Lighting, cameras, output and denoising (0.7.0 to 0.8.0) · Shots, animation and advanced light transport (0.9.0 to 0.10.0) · Editors and exchange (0.11.0 to 0.12.0) · Agents, render farm and release (0.13.0 to 0.14.0)
+ The WebGPU path tracer in the window proven on a real graphics card, and region render on the CPU engine (after 0.4.0) · Lighting, cameras, output and denoising (0.7.0 to 0.8.0) · Shots, animation and advanced light transport (0.9.0 to 0.10.0) · Editors and exchange (0.11.0 to 0.12.0) · Agents, render farm and release (0.13.0 to 0.14.0)
Formats
- Native: .fshot · Models in: glTF/GLB, OBJ, STL, PLY · Pictures: PNG and HDR in and out, EXR out · Planned: 3MF, FBX, STEP and IGES in; TIFF, JPEG, PSD, video, GLB, USD out
+ Native: .fshot · Models in: glTF/GLB, OBJ, STL, PLY, 3MF, FBX, STEP, IGES · Pictures: PNG, HDR and EXR in and out, JPEG in; PNG, JPEG, HDR and EXR textures kept in projects · Planned: TIFF, JPEG, PSD, video, GLB, USD out
## Built for agents
-The engine's 88 commands (39 document commands, 38 engine commands and 11 aliases) are listed in one catalogue built by `native/crates/fsh-commands`; the window, the command line and the MCP server all call them.
+The engine's 121 commands (47 document commands, 38 engine commands, 25 import, CAD, hand-off, material and library commands, and 11 aliases) are listed in one catalogue built by `native/crates/fsh-commands`; the window, the command line and the MCP server all call them.
```sh
./formshot mcp # MCP server on stdio for Claude Code, Codex, Cursor and Antigravity
@@ -172,7 +180,7 @@ cd formshot
Render from the command line with `./formshot render model.glb out.png --samples 256` (also `--width`, `--height`, `--threads`, `--seed`, `--denoise` and `--device`). `./formshot engine wasm` builds the optional in-window engine; the window works without it. `./formshot desktop dev` opens the desktop window instead, after `./formshot install-desktop`. On Windows use `formshot_oc_install.bat` and `formshot.bat`. `FORMSHOT_DATA` moves the data folder and `FORMSHOT_PROJECTS` the projects folder (`~/Documents/FormShot` by default).
> [!IMPORTANT]
-> **Status:** pre-release. FormShot 0.4.0 has the shell, the document and project file, the CPU and GPU path tracers, the live viewport with region render on the GPU, and the command line render. It has not been built or tested as a desktop app on any platform yet, and GPU rendering has run only on software drivers (see [Known limits](#known-limits)). See [`CHANGELOG.md`](CHANGELOG.md).
+> **Status:** pre-release. FormShot 0.6.0 has the shell, the document and project file, the CPU and GPU path tracers, the live viewport with region render on the GPU, and the command line render. It has not been built or tested as a desktop app on any platform yet, and GPU rendering has run only on software drivers (see [Known limits](#known-limits)). See [`CHANGELOG.md`](CHANGELOG.md).
**Contributing:** branch from `main`, keep changes to source here, and leave packaging and releases to FormCompiler. See [`CONTRIBUTING.md`](CONTRIBUTING.md), [`.docs/BRANCHING.md`](.docs/BRANCHING.md) and [`AGENTS.md`](AGENTS.md).
@@ -185,7 +193,7 @@ Render from the command line with `./formshot render model.glb out.png --samples
| `backend/` · `src-tauri/` | FastAPI service · Tauri 2 desktop shell |
| `setup/` · `mcp/` | the scripts behind `./formshot` · the MCP stdio bridge |
-Docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/GPU-ENGINE.md`](docs/GPU-ENGINE.md), [`docs/VIEWPORT.md`](docs/VIEWPORT.md), [`.docs/wiki`](.docs/wiki), [`CHANGELOG.md`](CHANGELOG.md) · Agents: [`CLAUDE.md`](CLAUDE.md), [`AGENTS.md`](AGENTS.md)
+Docs: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/GPU-ENGINE.md`](docs/GPU-ENGINE.md), [`docs/VIEWPORT.md`](docs/VIEWPORT.md), [`docs/IMPORT.md`](docs/IMPORT.md), [`docs/MATERIALS.md`](docs/MATERIALS.md), [`docs/LIBRARY.md`](docs/LIBRARY.md), [`docs/FILE-FORMAT.md`](docs/FILE-FORMAT.md), [`.docs/wiki`](.docs/wiki), [`CHANGELOG.md`](CHANGELOG.md) · Agents: [`CLAUDE.md`](CLAUDE.md), [`AGENTS.md`](AGENTS.md)
diff --git a/SECURITY.md b/SECURITY.md
index 5512da63..ca621989 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -7,7 +7,7 @@ FormShot has not been released yet. Until the first release, security fixes go i
| Version | Supported |
| --- | --- |
-| `main` (0.4.0, unreleased) | Yes |
+| `main` (0.6.0, unreleased) | Yes |
| Anything older | No |
## Reporting a vulnerability
diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt
index 7eda5f54..c35588af 100644
--- a/THIRD-PARTY-NOTICES.txt
+++ b/THIRD-PARTY-NOTICES.txt
@@ -37,6 +37,22 @@ packages carry no licence file (among them objc2-metal, profiling and spirv),
which need texts in setup/licence_texts before the generated file can replace
this one.
+The import work added three direct dependencies to fsh-io, listed in the crate
+sections below: roxmltree (MIT OR Apache-2.0), bevy_mikktspace (Zlib AND (MIT
+OR Apache-2.0)) and, in native builds only, ufbx (MIT OR Unlicense), which
+compiles the ufbx C library into the engine. ufbx's crate package carries no
+licence file, and bevy_mikktspace's carries no Zlib text; both need texts in
+setup/licence_texts. Building ufbx pulls in cc, find-msvc-tools and shlex (all
+MIT OR Apache-2.0), which run at build time only and are named in NOTICE.md.
+The texture work added zune-jpeg (with zune-core; both MIT OR Apache-2.0 OR
+Zlib, each with all three licence files) to fsh-io for JPEG textures; it is
+compiled into the native engine and the WebAssembly engine.
+The FormCAD kernel worker that opens STEP and IGES files is not shipped: it is
+downloaded into the user cache on request and run as a separate program.
+NOTICE.md also lists the data sources of the material library
+(assets/library): the refractiveindex.info database (CC0 1.0) and the papers
+each preset cites.
+
Build tools that do not ship (vite, rolldown, lightningcss, postcss,
typescript, @tauri-apps/cli, maturin, pyinstaller apart from its bootloader)
are named in NOTICE.md.
@@ -191,6 +207,12 @@ Licence: MIT
Source: https://www.npmjs.com/package/@xterm/xterm
Note: Licence as declared by the package: read from its package.json in frontend/node_modules on 2026-12-02. The full licence text is added by ./formshot notices.
+==============================================================================
+crate: bevy_mikktspace 1.0.0
+Licence: Zlib AND (MIT OR Apache-2.0)
+Source: https://crates.io/crates/bevy_mikktspace/1.0.0
+Note: Direct dependency of fsh-io (MikkTSpace tangents for imported meshes). Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02. The package carries LICENSE-MIT and LICENSE-APACHE but no Zlib text; its README names the Zlib licence of the original MikkTSpace code, whose text ./formshot notices must take from setup/licence_texts. The full licence texts are added by ./formshot notices.
+
==============================================================================
crate: bytemuck 1.25.2
Licence: Zlib OR Apache-2.0 OR MIT
@@ -281,6 +303,12 @@ Licence: MIT OR Apache-2.0
Source: https://crates.io/crates/rayon-core/1.13.0
Note: Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02. The full licence text is added by ./formshot notices.
+==============================================================================
+crate: roxmltree 0.21.2
+Licence: MIT OR Apache-2.0
+Source: https://crates.io/crates/roxmltree/0.21.2
+Note: Direct dependency of fsh-io (the XML inside 3MF files). Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02. The full licence text is added by ./formshot notices.
+
==============================================================================
crate: serde 1.0.229
Licence: MIT OR Apache-2.0
@@ -311,6 +339,12 @@ Licence: MIT OR Apache-2.0
Source: https://crates.io/crates/syn/3.0.10
Note: Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02. The full licence text is added by ./formshot notices.
+==============================================================================
+crate: ufbx 0.11.5
+Licence: MIT OR Unlicense
+Source: https://crates.io/crates/ufbx/0.11.5
+Note: Direct dependency of fsh-io in native builds only (FBX files); it compiles the ufbx C library into the engine. Licence as declared by the package's Cargo.toml in the local cargo registry on 2026-12-02. The package carries no licence file; the upstream repository's LICENSE (https://github.com/ufbx/ufbx) gives MIT or public domain, and FormShot uses it under MIT, whose text ./formshot notices must take from setup/licence_texts.
+
==============================================================================
crate: unicode-ident 1.0.27
Licence: (MIT OR Apache-2.0) AND Unicode-3.0
@@ -383,6 +417,18 @@ Licence: MIT
Source: https://crates.io/crates/zmij/1.0.23
Note: Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02. The full licence text is added by ./formshot notices.
+==============================================================================
+crate: zune-core 0.5.4
+Licence: MIT OR Apache-2.0 OR Zlib
+Source: https://crates.io/crates/zune-core/0.5.4
+Note: Pulled in by zune-jpeg. Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02; the package carries LICENSE-MIT, LICENSE-APACHE and LICENSE-ZLIB. The full licence text is added by ./formshot notices.
+
+==============================================================================
+crate: zune-jpeg 0.5.15
+Licence: MIT OR Apache-2.0 OR Zlib
+Source: https://crates.io/crates/zune-jpeg/0.5.15
+Note: Direct dependency of fsh-io (JPEG textures), also in the WebAssembly engine. Licence as declared by the package: read from its Cargo.toml in the local cargo registry on 2026-12-02; the package carries LICENSE-MIT, LICENSE-APACHE and LICENSE-ZLIB. The full licence text is added by ./formshot notices.
+
==============================================================================
Shared licence texts
diff --git a/VERSION b/VERSION
index 1d0ba9ea..a918a2aa 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.4.0
+0.6.0
diff --git a/agents/manifest.json b/agents/manifest.json
index 393c207f..a7fdf6ef 100644
--- a/agents/manifest.json
+++ b/agents/manifest.json
@@ -18,6 +18,7 @@
"scene.set_part_colour",
"scene.set_metadata",
"scene.set_pivot",
+ "scene.set_part_mesh",
"scene.set_light",
"scene.set_cutaway",
"scene.reparent",
@@ -28,6 +29,13 @@
"material.create",
"material.set_params",
"material.set_type",
+ "material.set_slot",
+ "material.clear_slot",
+ "material.set_graph",
+ "material.label_add",
+ "material.label_set",
+ "material.label_remove",
+ "material.label_move",
"material.assign",
"material.rename",
"material.remove",
@@ -81,6 +89,31 @@
"scene.meshes",
"scene.mesh_data",
"view.frame",
+ "import.probe",
+ "import.start",
+ "import.status",
+ "import.cancel",
+ "file.reimport",
+ "cad.status",
+ "scene.retessellate",
+ "cad.parts",
+ "handoff.inspect",
+ "handoff.open",
+ "material.types",
+ "material.node_kinds",
+ "material.program",
+ "material.preview_maps",
+ "material.get",
+ "material.labels",
+ "library.list",
+ "library.get",
+ "library.favorite",
+ "library.recent",
+ "library.apply",
+ "library.save",
+ "library.remove",
+ "library.thumbnail",
+ "library.thumbnails",
"node.set_visible",
"node.set_locked",
"node.rename",
@@ -105,7 +138,23 @@
"view.bounds",
"view.pick",
"scene.meshes",
- "scene.mesh_data"
+ "scene.mesh_data",
+ "import.probe",
+ "import.status",
+ "cad.status",
+ "cad.parts",
+ "handoff.inspect",
+ "material.types",
+ "material.node_kinds",
+ "material.program",
+ "material.preview_maps",
+ "material.get",
+ "material.labels",
+ "library.list",
+ "library.get",
+ "library.recent",
+ "library.thumbnail",
+ "library.thumbnails"
],
"approval_gated": [
"scene.add_group",
@@ -122,6 +171,7 @@
"scene.set_part_colour",
"scene.set_metadata",
"scene.set_pivot",
+ "scene.set_part_mesh",
"scene.set_light",
"scene.set_cutaway",
"scene.reparent",
@@ -132,6 +182,13 @@
"material.create",
"material.set_params",
"material.set_type",
+ "material.set_slot",
+ "material.clear_slot",
+ "material.set_graph",
+ "material.label_add",
+ "material.label_set",
+ "material.label_remove",
+ "material.label_move",
"material.assign",
"material.rename",
"material.remove",
@@ -173,6 +230,15 @@
"render.region",
"render.viewport",
"view.frame",
+ "import.start",
+ "import.cancel",
+ "file.reimport",
+ "scene.retessellate",
+ "handoff.open",
+ "library.favorite",
+ "library.apply",
+ "library.save",
+ "library.remove",
"node.set_visible",
"node.set_locked",
"node.rename",
@@ -195,6 +261,7 @@
"name": "formshot-harness",
"sub_skills": [
"agent-substrate",
+ "cad-and-handoffs",
"command-registry",
"cpu-tracer",
"desktop-shell",
@@ -202,6 +269,7 @@
"engine-service",
"gpu-tracer",
"io-formats",
+ "material-library",
"materials",
"scene-document",
"ui-shell",
diff --git a/assets/library/README.md b/assets/library/README.md
new file mode 100644
index 00000000..96dab60f
--- /dev/null
+++ b/assets/library/README.md
@@ -0,0 +1,46 @@
+# FormShot material library
+
+Material presets for the Library window. Every preset here is our own work, written from public physical data, and is licensed with the rest of FormShot under Apache-2.0 (each file says so in its `licence` field). No preset, name or description comes from another renderer's library.
+
+## Layout
+
+- `materials//.json`: one preset per file. Categories, in the window's order: Metal, Plastic, Glass, Paint, Rubber, Fabric, Wood, Stone, Ceramic, Liquid, Gem, Emissive. The folder is the category in lower case.
+- `materials/index.json`: every preset with its id, name, category, type, tags, file and the SHA-256 of the file.
+
+## Preset format (version 1)
+
+```
+{format: "formshot-material-preset", version: 1, id, name, category, type, params, tags, source, licence}
+```
+
+- `id` is `/`, stable for good: favourites, thumbnails and documents refer to it.
+- `type` is a material type id (`metal`, `metal_brushed`, `plastic`, `plastic_clear`, `paint`, `paint_metallic`, `glass`, `glass_thin`, `liquid`, `gem`, `rubber`, `fabric`, `ceramic`, `diffuse`, `emissive`, `wood`, `stone`, `generic`).
+- `params` uses the field names of the engine's surface model (`SurfaceParams` in fsh-scene, which follows the OpenPBR Surface parameter names). Applying a preset starts from the type's defaults and sets every key in `params`. Version 1 presets store the full value of every field that defines their look.
+- Colours are scene-linear ACEScg, the engine's working space. Lengths are metres, except `thin_film_thickness` in micrometres. `emission_luminance` is in nits (cd/m2) and `emission_color` is normalised to luminance 1, so the number is the surface's luminance.
+- `source` says where each number came from: `kind` is `measured`, `published` or `authored`; `reference` and `urls` cite the data; `notes` explains derivations and the reasoning behind authored values; `authored` lists the parameters we chose ourselves (roughness of a finish, the colour of a dyed plastic) when the rest of the preset is measured or published.
+
+## Sources and licences
+
+| Source | Used for | Licence |
+| --- | --- | --- |
+| refractiveindex.info database, M. N. Polyanskiy, Sci. Data 11, 94 (2024), https://github.com/polyanskiy/refractiveindex.info-database (commit e6d15e364f70de1cad8a96a20f75689f2fba8b21) | Complex refractive index n and k of metals and alloys; refractive index and dispersion of glasses, polymers, liquids and crystals; absorption of water and window glasses | CC0 1.0 |
+| CIE 1931 2 degree colour matching functions and CIE illuminant D65, as tabulated in the colour-science Python package (BSD-3-Clause), https://github.com/colour-science/colour | Turning spectra into colours (used only by the conversion, not stored) | CIE standard data; package BSD-3-Clause |
+| USDA AMS, Sucrose Conversion Table, Technical Procedures Manual Appendix XV, https://www.ams.usda.gov/sites/default/files/media/SucroseConversionTableXV.pdf | Refractive index of sugar solutions (juices, syrups, soft drinks) | US federal government work |
+| Museum of Fine Arts Boston, CAMEO, Gemstone properties table, https://cameo.mfa.org/wiki/Gemstone | Refractive index and dispersion of gems without n data in the database | Facts cited, nothing copied |
+| GIA Gem Encyclopedia, emerald facts, https://www.gia.edu/emerald/gem-overview | Emerald refractive index | Facts cited, nothing copied |
+| LibreTexts Geosciences, Gemology, Emerald, https://geo.libretexts.org/Bookshelves/Geology/Gemology/16%3A_Gemstones/16.04%3A_Beryl/16.4.03%3A_Emerald | Beryl dispersion (emerald, aquamarine) | Facts cited, nothing copied |
+| Orders of magnitude (luminance), https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance | Luminance of displays and lamps | Facts cited, nothing copied |
+
+Only numbers are taken from these sources; the presets, names and notes are ours.
+
+## How the numbers were made
+
+- Metals: the base colour is the normal-incidence Fresnel reflectance of the measured n and k, and the edge tint (`specular_color`) is the F82 tint of the OpenPBR metal model: the ratio of the true reflectance at 82 degrees (cosine 1/7) to the Schlick curve through the base colour. Each reflectance spectrum (380 to 780 nm, 5 nm steps) is integrated against the CIE 1931 colour matching functions under D65, normalised so a perfect reflector is white, converted to linear sRGB and then to ACEScg with the engine's matrix. The fitted F0 and tint reproduce the true reflectance at every angle to within 0.043 (27 of the 32 measured metals within 0.03); each preset's notes give its own figure.
+- Dielectrics: `specular_ior` is n at 587.6 nm; the Abbe number is (nd - 1) / (nF - nC) at 587.6, 486.1 and 656.3 nm. For gems quoted with a B-G dispersion (nG - nB), the Abbe number uses nF - nC = 0.5845 (nG - nB), which follows from Cauchy's two-term formula.
+- Absorbing transparent materials (water, window glasses): `transmission_color` is the Beer-Lambert transmittance exp(-4 pi k d / lambda) at `transmission_depth` d, integrated to a colour like the metals.
+- Emitters: `emission_color` is the colour of a blackbody at the lamp's colour temperature, or of the emission line, normalised to luminance 1.
+- Authored values (finish roughness, dye and pigment colours, coat settings) are recorded in each preset's `source.authored` and explained in `source.notes`; authored colours give the 8-bit sRGB value they were picked as.
+
+## Adding a preset
+
+Write the file by hand in the format above, add its entry to `materials/index.json` (keep the order: category, then name) with the file's SHA-256, and keep the whole library under 2 MB. Cite every measured or published number; list every chosen one in `authored`.
diff --git a/assets/library/materials/ceramic/alumina-technical.json b/assets/library/materials/ceramic/alumina-technical.json
new file mode 100644
index 00000000..4ae84cac
--- /dev/null
+++ b/assets/library/materials/ceramic/alumina-technical.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/alumina-technical",
+ "name": "Alumina ceramic, technical",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.8871, 0.88, 0.8305],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.7682,
+ "coat_weight": 0.0
+ },
+ "tags": ["ceramic", "satin", "white", "opaque", "industrial"],
+ "source": {
+ "kind": "published",
+ "reference": "I. H. Malitson. Refraction and dispersion of synthetic sapphire. J. Opt. Soc. Am. 52, 1377-1379 (1962); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al2O3/nk/Malitson.yml"],
+ "notes": "Sintered aluminium oxide, as in insulators and wear parts. specular_ior 1.7682 is the measured ordinary index of sapphire (Al2O3) at 587.6 nm. Colour sRGB #f3f1ea and roughness 0.3 (ground finish) authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/bisque-white-unglazed.json b/assets/library/materials/ceramic/bisque-white-unglazed.json
new file mode 100644
index 00000000..2a1bc2e8
--- /dev/null
+++ b/assets/library/materials/ceramic/bisque-white-unglazed.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/bisque-white-unglazed",
+ "name": "Bisque, unglazed white",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.8161, 0.7934, 0.7138],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.8,
+ "specular_roughness": 0.8,
+ "specular_ior": 1.5,
+ "coat_weight": 0.0
+ },
+ "tags": ["ceramic", "matte", "white", "opaque", "tableware"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Unglazed porous body, white body after the first firing: coat off, very rough. Colour sRGB #ece6da, roughness 0.8, diffuse roughness 0.8 and ior 1.5 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/glazed-black.json b/assets/library/materials/ceramic/glazed-black.json
new file mode 100644
index 00000000..14f6c62a
--- /dev/null
+++ b/assets/library/materials/ceramic/glazed-black.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/glazed-black",
+ "name": "Glazed ceramic, black",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.007, 0.007, 0.007],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "gloss", "coat", "black", "opaque", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Fired body under a glaze. The glaze is a silicate glass, so coat_ior 1.5234 is the measured n of soda-lime glass at 587.6 nm. Body colour sRGB #141414, body roughness 0.4 and ior 1.5, and glaze roughness 0.03 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/glazed-celadon.json b/assets/library/materials/ceramic/glazed-celadon.json
new file mode 100644
index 00000000..7da84943
--- /dev/null
+++ b/assets/library/materials/ceramic/glazed-celadon.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/glazed-celadon",
+ "name": "Glazed ceramic, celadon",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.4434, 0.5327, 0.3996],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.05,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "gloss", "coat", "green", "opaque", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Fired body under a glaze. The glaze is a silicate glass, so coat_ior 1.5234 is the measured n of soda-lime glass at 587.6 nm. Body colour sRGB #a8c3a6, body roughness 0.4 and ior 1.5, and glaze roughness 0.05 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/glazed-cobalt-blue.json b/assets/library/materials/ceramic/glazed-cobalt-blue.json
new file mode 100644
index 00000000..4079f8d6
--- /dev/null
+++ b/assets/library/materials/ceramic/glazed-cobalt-blue.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/glazed-cobalt-blue",
+ "name": "Glazed ceramic, cobalt blue",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.0364, 0.0473, 0.2443],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "gloss", "coat", "blue", "opaque", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Fired body under a glaze. The glaze is a silicate glass, so coat_ior 1.5234 is the measured n of soda-lime glass at 587.6 nm. Body colour sRGB #1d3d8f, body roughness 0.4 and ior 1.5, and glaze roughness 0.03 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/glazed-tile-white.json b/assets/library/materials/ceramic/glazed-tile-white.json
new file mode 100644
index 00000000..eadda18f
--- /dev/null
+++ b/assets/library/materials/ceramic/glazed-tile-white.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/glazed-tile-white",
+ "name": "Glazed tile, white",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.8663, 0.8632, 0.8282],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "gloss", "coat", "white", "opaque", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Fired body under a glaze. The glaze is a silicate glass, so coat_ior 1.5234 is the measured n of soda-lime glass at 587.6 nm. Body colour sRGB #f0efea, body roughness 0.4 and ior 1.5, and glaze roughness 0.02 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/glazed-white.json b/assets/library/materials/ceramic/glazed-white.json
new file mode 100644
index 00000000..da038a26
--- /dev/null
+++ b/assets/library/materials/ceramic/glazed-white.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/glazed-white",
+ "name": "Glazed ceramic, white",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.8828, 0.8797, 0.8443],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "gloss", "coat", "white", "opaque", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Fired body under a glaze. The glaze is a silicate glass, so coat_ior 1.5234 is the measured n of soda-lime glass at 587.6 nm. Body colour sRGB #f2f1ec, body roughness 0.4 and ior 1.5, and glaze roughness 0.03 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/porcelain-glazed.json b/assets/library/materials/ceramic/porcelain-glazed.json
new file mode 100644
index 00000000..6c72a40b
--- /dev/null
+++ b/assets/library/materials/ceramic/porcelain-glazed.json
@@ -0,0 +1,32 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/porcelain-glazed",
+ "name": "Porcelain, glazed",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.8998, 0.8964, 0.8676],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.2,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.5,
+ "subsurface_weight": 0.4,
+ "subsurface_color": [0.8923, 0.8806, 0.8307],
+ "subsurface_radius": 0.003,
+ "subsurface_radius_scale": [1.0, 0.85, 0.7],
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "gloss", "coat", "subsurface", "white", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Vitrified porcelain is slightly translucent: subsurface weight 0.4, 3 mm mean free path, warmer in red (authored). Glaze coat_ior 1.5234 is the measured n of soda-lime glass; colours sRGB #f4f3ef and #f4f1ea, roughness values authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "subsurface_weight", "subsurface_color", "subsurface_radius", "subsurface_radius_scale", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/stoneware-matte-glaze.json b/assets/library/materials/ceramic/stoneware-matte-glaze.json
new file mode 100644
index 00000000..b67e4318
--- /dev/null
+++ b/assets/library/materials/ceramic/stoneware-matte-glaze.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/stoneware-matte-glaze",
+ "name": "Stoneware, matte glaze",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.6022, 0.5798, 0.5084],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.35,
+ "coat_ior": 1.5234,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["ceramic", "matte", "coat", "grey", "opaque", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Fired body under a glaze. The glaze is a silicate glass, so coat_ior 1.5234 is the measured n of soda-lime glass at 587.6 nm. Body colour sRGB #cfc8bb, body roughness 0.4 and ior 1.5, and glaze roughness 0.35 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior", "coat_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/ceramic/terracotta-unglazed.json b/assets/library/materials/ceramic/terracotta-unglazed.json
new file mode 100644
index 00000000..191ad063
--- /dev/null
+++ b/assets/library/materials/ceramic/terracotta-unglazed.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "ceramic/terracotta-unglazed",
+ "name": "Terracotta, unglazed",
+ "category": "Ceramic",
+ "type": "ceramic",
+ "params": {
+ "base_color": [0.327, 0.145, 0.0635],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.8,
+ "specular_roughness": 0.8,
+ "specular_ior": 1.5,
+ "coat_weight": 0.0
+ },
+ "tags": ["ceramic", "matte", "orange", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Unglazed porous body, iron-rich earthenware fired red: coat off, very rough. Colour sRGB #b5623d, roughness 0.8, diffuse roughness 0.8 and ior 1.5 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/display-white-srgb.json b/assets/library/materials/emissive/display-white-srgb.json
new file mode 100644
index 00000000..e64d3889
--- /dev/null
+++ b/assets/library/materials/emissive/display-white-srgb.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/display-white-srgb",
+ "name": "Display white, sRGB reference",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 80.0,
+ "emission_color": [0.9036, 1.0316, 1.092]
+ },
+ "tags": ["light-source", "emissive", "display", "white", "electronics"],
+ "source": {
+ "kind": "published",
+ "reference": "IEC 61966-2-1 (sRGB) reference display luminance 80 cd/m2; Orders of magnitude (luminance), Wikipedia, luminance table and its cited sources",
+ "urls": ["https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance"],
+ "notes": "Luminance 80 nits, the sRGB reference display white. emission_color is CIE D65 (the sRGB white point) normalised to luminance 1. Base black, roughness 0.3 for the screen's front glass, authored.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/electroluminescent-green.json b/assets/library/materials/emissive/electroluminescent-green.json
new file mode 100644
index 00000000..40eb6f56
--- /dev/null
+++ b/assets/library/materials/emissive/electroluminescent-green.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/electroluminescent-green",
+ "name": "Electroluminescent panel, green",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 30.0,
+ "emission_color": [0.0, 1.4378, 0.5737]
+ },
+ "tags": ["light-source", "emissive", "green", "display"],
+ "source": {
+ "kind": "published",
+ "reference": "Orders of magnitude (luminance), Wikipedia, luminance table and its cited sources",
+ "urls": ["https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance"],
+ "notes": "Luminance 30 nits, a green electroluminescent source. emission_color is a band centred at 510 nm, 25 nm wide (authored from the typical zinc sulphide copper phosphor), normalised to luminance 1. Roughness authored.",
+ "authored": ["emission_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/fluorescent-tube-4000k.json b/assets/library/materials/emissive/fluorescent-tube-4000k.json
new file mode 100644
index 00000000..ca1b63b3
--- /dev/null
+++ b/assets/library/materials/emissive/fluorescent-tube-4000k.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/fluorescent-tube-4000k",
+ "name": "Fluorescent tube, 4000 K",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 12000.0,
+ "emission_color": [1.0966, 0.9883, 0.6569]
+ },
+ "tags": ["light-source", "emissive", "white", "lighting"],
+ "source": {
+ "kind": "published",
+ "reference": "Orders of magnitude (luminance), Wikipedia, luminance table and its cited sources",
+ "urls": ["https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance"],
+ "notes": "Luminance 12000 nits, a fluorescent lamp. emission_color is a 4000 K blackbody normalised to luminance 1; the colour temperature is authored (neutral white tube). Roughness authored.",
+ "authored": ["emission_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/hdr-display-peak.json b/assets/library/materials/emissive/hdr-display-peak.json
new file mode 100644
index 00000000..4fda5f2f
--- /dev/null
+++ b/assets/library/materials/emissive/hdr-display-peak.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/hdr-display-peak",
+ "name": "HDR display, peak white",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 1000.0,
+ "emission_color": [0.9036, 1.0316, 1.092]
+ },
+ "tags": ["light-source", "emissive", "display", "white", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Luminance 1000 nits authored: the peak level HDR televisions and monitors are commonly graded to. D65 white normalised to luminance 1. Roughness authored.",
+ "authored": ["base_color", "specular_roughness", "emission_luminance", "emission_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/incandescent-frosted-2700k.json b/assets/library/materials/emissive/incandescent-frosted-2700k.json
new file mode 100644
index 00000000..aefc2253
--- /dev/null
+++ b/assets/library/materials/emissive/incandescent-frosted-2700k.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/incandescent-frosted-2700k",
+ "name": "Incandescent bulb, frosted",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 130000.0,
+ "emission_color": [1.3466, 0.9131, 0.3332]
+ },
+ "tags": ["light-source", "emissive", "orange", "lighting"],
+ "source": {
+ "kind": "published",
+ "reference": "Orders of magnitude (luminance), Wikipedia, luminance table and its cited sources",
+ "urls": ["https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance"],
+ "notes": "Luminance 130000 nits, a frosted incandescent bulb. emission_color is a 2700 K blackbody normalised to luminance 1, the usual colour temperature of a household tungsten lamp (authored). Roughness authored.",
+ "authored": ["emission_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/indicator-led-red.json b/assets/library/materials/emissive/indicator-led-red.json
new file mode 100644
index 00000000..62024430
--- /dev/null
+++ b/assets/library/materials/emissive/indicator-led-red.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/indicator-led-red",
+ "name": "Indicator LED, red",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 5000.0,
+ "emission_color": [3.5049, 0.0667, 0.0175]
+ },
+ "tags": ["light-source", "emissive", "red", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "A small red status LED seen through its diffusing lens: 5000 nits authored; emission_color a 630 nm band 10 nm wide (typical AlGaInP red), normalised to luminance 1. Roughness authored.",
+ "authored": ["base_color", "specular_roughness", "emission_luminance", "emission_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/light-box-6500k.json b/assets/library/materials/emissive/light-box-6500k.json
new file mode 100644
index 00000000..35ec9ba7
--- /dev/null
+++ b/assets/library/materials/emissive/light-box-6500k.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/light-box-6500k",
+ "name": "Light box, daylight",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 2000.0,
+ "emission_color": [0.9036, 1.0316, 1.092]
+ },
+ "tags": ["light-source", "emissive", "white", "lighting"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "A diffuser panel for product lighting: 2000 nits authored, bright enough to key a product without clipping a typical exposure. D65 white normalised to luminance 1. Roughness authored.",
+ "authored": ["base_color", "specular_roughness", "emission_luminance", "emission_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/monitor-white-lcd.json b/assets/library/materials/emissive/monitor-white-lcd.json
new file mode 100644
index 00000000..9634dc6a
--- /dev/null
+++ b/assets/library/materials/emissive/monitor-white-lcd.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/monitor-white-lcd",
+ "name": "LCD monitor, white",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 250.0,
+ "emission_color": [0.9036, 1.0316, 1.092]
+ },
+ "tags": ["light-source", "emissive", "display", "white", "electronics"],
+ "source": {
+ "kind": "published",
+ "reference": "Orders of magnitude (luminance), Wikipedia, luminance table and its cited sources",
+ "urls": ["https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance"],
+ "notes": "Luminance 250 nits, the peak of a typical LCD monitor. emission_color is D65 normalised to luminance 1. Roughness authored.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/emissive/sodium-lamp-low-pressure.json b/assets/library/materials/emissive/sodium-lamp-low-pressure.json
new file mode 100644
index 00000000..e0d771ab
--- /dev/null
+++ b/assets/library/materials/emissive/sodium-lamp-low-pressure.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "emissive/sodium-lamp-low-pressure",
+ "name": "Sodium lamp, low pressure",
+ "category": "Emissive",
+ "type": "emissive",
+ "params": {
+ "base_color": [0.0, 0.0, 0.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "emission_luminance": 75000.0,
+ "emission_color": [1.9191, 0.7077, 0.0099]
+ },
+ "tags": ["light-source", "emissive", "orange", "lighting"],
+ "source": {
+ "kind": "published",
+ "reference": "Orders of magnitude (luminance), Wikipedia, luminance table and its cited sources",
+ "urls": ["https://en.wikipedia.org/wiki/Orders_of_magnitude_(illuminance)#Luminance"],
+ "notes": "Luminance 75000 nits, a low-pressure sodium lamp. emission_color is the 589.3 nm sodium D line, integrated with CIE 1931 and normalised to luminance 1 (it lies inside the ACEScg gamut). Roughness authored.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/cotton-navy.json b/assets/library/materials/fabric/cotton-navy.json
new file mode 100644
index 00000000..c699bc20
--- /dev/null
+++ b/assets/library/materials/fabric/cotton-navy.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/cotton-navy",
+ "name": "Cotton, navy",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.019, 0.023, 0.0531],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.124, 0.1428, 0.246],
+ "fuzz_roughness": 0.5,
+ "specular_ior": 1.4701
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "blue", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #1f2a44 and fuzz colour sRGB #5a6a8c authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.5 authored. specular_ior 1.4701 is the measured n of cotton (cellulose) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/cotton-red.json b/assets/library/materials/fabric/cotton-red.json
new file mode 100644
index 00000000..15f3c9ca
--- /dev/null
+++ b/assets/library/materials/fabric/cotton-red.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/cotton-red",
+ "name": "Cotton, red",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.2317, 0.0422, 0.0314],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.4754, 0.1772, 0.165],
+ "fuzz_roughness": 0.5,
+ "specular_ior": 1.4701
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "red", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #a3242c and fuzz colour sRGB #d8686e authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.5 authored. specular_ior 1.4701 is the measured n of cotton (cellulose) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/cotton-white.json b/assets/library/materials/fabric/cotton-white.json
new file mode 100644
index 00000000..dd3cf73e
--- /dev/null
+++ b/assets/library/materials/fabric/cotton-white.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/cotton-white",
+ "name": "Cotton, white",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.8335, 0.8307, 0.7899],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [1.0, 1.0, 1.0],
+ "fuzz_roughness": 0.5,
+ "specular_ior": 1.4701
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "white", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #ecebe5 and fuzz colour sRGB #ffffff authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.5 authored. specular_ior 1.4701 is the measured n of cotton (cellulose) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/denim-blue.json b/assets/library/materials/fabric/denim-blue.json
new file mode 100644
index 00000000..ad697fca
--- /dev/null
+++ b/assets/library/materials/fabric/denim-blue.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/denim-blue",
+ "name": "Denim, indigo",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.0414, 0.0565, 0.1224],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.3174, 0.3619, 0.499],
+ "fuzz_roughness": 0.55,
+ "specular_ior": 1.4701
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "blue", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #2c4466 and fuzz colour sRGB #8fa3bf authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.55 authored. specular_ior 1.4701 is the measured n of cotton (cellulose) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/felt-charcoal.json b/assets/library/materials/fabric/felt-charcoal.json
new file mode 100644
index 00000000..0f974a27
--- /dev/null
+++ b/assets/library/materials/fabric/felt-charcoal.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/felt-charcoal",
+ "name": "Felt, charcoal",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.0439, 0.0438, 0.0463],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.2022, 0.2017, 0.214],
+ "fuzz_roughness": 0.8,
+ "specular_ior": 1.55
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "grey", "apparel"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #3b3b3d and fuzz colour sRGB #7c7c80 authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.8 authored. specular_ior 1.55 authored: the commonly quoted index of keratin fibre (wool).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/linen-natural.json b/assets/library/materials/fabric/linen-natural.json
new file mode 100644
index 00000000..d659190d
--- /dev/null
+++ b/assets/library/materials/fabric/linen-natural.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/linen-natural",
+ "name": "Linen, natural",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.546, 0.5067, 0.3814],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.7549, 0.719, 0.5859],
+ "fuzz_roughness": 0.6,
+ "specular_ior": 1.4701
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "brown", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #c9bca2 and fuzz colour sRGB #e6dcc6 authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.6 authored. specular_ior 1.4701 is the measured n of linen (cellulose) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/polyester-black.json b/assets/library/materials/fabric/polyester-black.json
new file mode 100644
index 00000000..5810196f
--- /dev/null
+++ b/assets/library/materials/fabric/polyester-black.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/polyester-black",
+ "name": "Polyester, black",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.007, 0.007, 0.007],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.1022, 0.1022, 0.1022],
+ "fuzz_roughness": 0.45,
+ "specular_ior": 1.5693
+ },
+ "tags": ["synthetic-fibre", "fuzz", "matte", "black", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #141414 and fuzz colour sRGB #5a5a5a authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.45 authored. specular_ior 1.5693 is the measured n of polyester (PET) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/polyester-grey.json b/assets/library/materials/fabric/polyester-grey.json
new file mode 100644
index 00000000..d62f4be8
--- /dev/null
+++ b/assets/library/materials/fabric/polyester-grey.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/polyester-grey",
+ "name": "Polyester, grey",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.198, 0.2013, 0.2139],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.4619, 0.4673, 0.4878],
+ "fuzz_roughness": 0.45,
+ "specular_ior": 1.5693
+ },
+ "tags": ["synthetic-fibre", "fuzz", "matte", "grey", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #7a7c80 and fuzz colour sRGB #b4b6ba authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.45 authored. specular_ior 1.5693 is the measured n of polyester (PET) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/silk-ivory.json b/assets/library/materials/fabric/silk-ivory.json
new file mode 100644
index 00000000..d64d370c
--- /dev/null
+++ b/assets/library/materials/fabric/silk-ivory.json
@@ -0,0 +1,29 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/silk-ivory",
+ "name": "Silk, ivory",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.8046, 0.7712, 0.6442],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_weight": 0.6,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5503,
+ "specular_roughness_anisotropy": 0.5,
+ "fuzz_weight": 0.3,
+ "fuzz_color": [1.0, 1.0, 1.0],
+ "fuzz_roughness": 0.4
+ },
+ "tags": ["natural-fibre", "fuzz", "satin", "anisotropic", "white", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Perotto, Y. Zhang, D. Naskar, N. Patel, D. L. Kaplan, S. C. Kundu, F. G. Omenetto. The optical properties of regenerated silk fibroin films obtained from different sources. Appl. Phys. Lett. 111, 103702 (2017); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/silk/Bombyx%20mori/nk/Perotto-crystallized.yml"],
+ "notes": "Smooth filament silk: a stronger, anisotropic specular along the threads and little fuzz. specular_ior 1.5503 is the measured n of crystallised Bombyx mori fibroin at 587.6 nm. Colour sRGB #ece3cf, specular weight 0.6, roughness 0.35, anisotropy 0.5 and fuzz 0.3 authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "specular_roughness_anisotropy", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/velvet-black.json b/assets/library/materials/fabric/velvet-black.json
new file mode 100644
index 00000000..10a98cb6
--- /dev/null
+++ b/assets/library/materials/fabric/velvet-black.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/velvet-black",
+ "name": "Velvet, black",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.0037, 0.0037, 0.0037],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.147, 0.147, 0.147],
+ "fuzz_roughness": 0.3,
+ "specular_ior": 1.5693
+ },
+ "tags": ["synthetic-fibre", "fuzz", "matte", "black", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #0c0c0c and fuzz colour sRGB #6b6b6b authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.3 authored, low for the upright pile of velvet. specular_ior 1.5693 is the measured n of polyester (PET) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/velvet-burgundy.json b/assets/library/materials/fabric/velvet-burgundy.json
new file mode 100644
index 00000000..1c7d355a
--- /dev/null
+++ b/assets/library/materials/fabric/velvet-burgundy.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/velvet-burgundy",
+ "name": "Velvet, burgundy",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.044, 0.009, 0.0109],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.2924, 0.0896, 0.1048],
+ "fuzz_roughness": 0.3,
+ "specular_ior": 1.5693
+ },
+ "tags": ["synthetic-fibre", "fuzz", "matte", "red", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #4a0e1a and fuzz colour sRGB #b0475a authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.3 authored, low for the upright pile of velvet. specular_ior 1.5693 is the measured n of polyester (PET) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/wool-camel.json b/assets/library/materials/fabric/wool-camel.json
new file mode 100644
index 00000000..febaa5d9
--- /dev/null
+++ b/assets/library/materials/fabric/wool-camel.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/wool-camel",
+ "name": "Wool, camel",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.3103, 0.2161, 0.1002],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.5797, 0.469, 0.292],
+ "fuzz_roughness": 0.7,
+ "specular_ior": 1.55
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "brown", "apparel"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #a77d50 and fuzz colour sRGB #d6b48c authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.7 authored. specular_ior 1.55 authored: the commonly quoted index of keratin fibre (wool).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/fabric/wool-grey.json b/assets/library/materials/fabric/wool-grey.json
new file mode 100644
index 00000000..3ee7ddd4
--- /dev/null
+++ b/assets/library/materials/fabric/wool-grey.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "fabric/wool-grey",
+ "name": "Wool, grey",
+ "category": "Fabric",
+ "type": "fabric",
+ "params": {
+ "base_color": [0.2086, 0.2053, 0.1902],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 1.0,
+ "specular_weight": 0.25,
+ "specular_roughness": 0.8,
+ "fuzz_weight": 1.0,
+ "fuzz_color": [0.5304, 0.5217, 0.4851],
+ "fuzz_roughness": 0.7,
+ "specular_ior": 1.55
+ },
+ "tags": ["natural-fibre", "fuzz", "matte", "grey", "apparel"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Woven or felted fibre: a rough diffuse base with a weak specular and a fuzz layer for the fibres standing off the surface. base_color sRGB #7f7d78 and fuzz colour sRGB #c2bfb8 authored (fuzz lighter, as stray fibres scatter un-dyed light); fuzz roughness 0.7 authored. specular_ior 1.55 authored: the commonly quoted index of keratin fibre (wool).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_weight", "specular_roughness", "fuzz_color", "fuzz_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/amethyst.json b/assets/library/materials/gem/amethyst.json
new file mode 100644
index 00000000..03ac8443
--- /dev/null
+++ b/assets/library/materials/gem/amethyst.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/amethyst",
+ "name": "Amethyst",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5443,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 69.7,
+ "transmission_color": [0.2051, 0.0959, 0.4307],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "purple", "tinted", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.5443 is the measured n at 587.6 nm and the Abbe number 69.7 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled). transmission_color authored as sRGB #8a4fb8, the violet of iron colour centres in quartz, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/aquamarine.json b/assets/library/materials/gem/aquamarine.json
new file mode 100644
index 00000000..44784c4e
--- /dev/null
+++ b/assets/library/materials/gem/aquamarine.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/aquamarine",
+ "name": "Aquamarine",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.58,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 70.9,
+ "transmission_color": [0.3989, 0.5757, 0.7192],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "blue", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table; LibreTexts Geosciences, Gemology, Emerald: dispersion 0.014",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone", "https://geo.libretexts.org/Bookshelves/Geology/Gemology/16%3A_Gemstones/16.04%3A_Beryl/16.4.03%3A_Emerald"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.58: the mid value of beryl's ordinary index 1.574 to 1.586 (CAMEO); beryl dispersion 0.014 (LibreTexts Gemology). The Abbe number 70.9 is converted from the published B-G dispersion 0.014 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #8ccbe0, the sea blue of iron in beryl, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/chrysoberyl.json b/assets/library/materials/gem/chrysoberyl.json
new file mode 100644
index 00000000..02cee621
--- /dev/null
+++ b/assets/library/materials/gem/chrysoberyl.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/chrysoberyl",
+ "name": "Chrysoberyl",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.7428,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 73.9,
+ "transmission_color": [0.5463, 0.4991, 0.1266],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "yellow", "tinted", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "J. Walling, O. Peterson, H. Jenssen, R. Morris, E. O'Dell. Tunable alexandrite lasers. IEEE J. Quantum Electron., 16, 1302-1315 (1980); P. Loiko, A. Major. Dispersive properties of alexandrite and beryllium hexaaluminate crystals. Opt. Mater. Express, 6, 2177-2183 (2016) * Ref. 2 provides a dispersion formula based on the experimental data from Ref. 1; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/BeAl2O4/nk/Walling-alpha.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.7428 is the measured n at 587.6 nm and the Abbe number 73.9 is (nd - 1)/(nF - nC) from the same data. transmission_color authored as sRGB #cdbb4a, the greenish yellow of iron in chrysoberyl, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/citrine.json b/assets/library/materials/gem/citrine.json
new file mode 100644
index 00000000..6b94bb0e
--- /dev/null
+++ b/assets/library/materials/gem/citrine.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/citrine",
+ "name": "Citrine",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5443,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 69.7,
+ "transmission_color": [0.6174, 0.41, 0.0788],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "yellow", "tinted", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.5443 is the measured n at 587.6 nm and the Abbe number 69.7 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled). transmission_color authored as sRGB #e6a72a, the golden yellow of heated or iron-bearing quartz, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/cubic-zirconia.json b/assets/library/materials/gem/cubic-zirconia.json
new file mode 100644
index 00000000..725355e2
--- /dev/null
+++ b/assets/library/materials/gem/cubic-zirconia.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/cubic-zirconia",
+ "name": "Cubic zirconia",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 2.1476,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 33.5,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery", "synthetic"],
+ "source": {
+ "kind": "measured",
+ "reference": "R.A. Synowicki and T. E. Tiwald. Optical properties of bulk c-ZrO2, c-MgO and a-As2S3 determined by variable angle spectroscopic ellipsometry. Thin Solid Films 455-456, 248-255 (2004) Calculation scripts (Python): Synowicki 2004 - ZrO2.py, Synowicki 2004 - Aux funcs.py; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/ZrO2/nk/Synowicki.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 2.1476 is the measured n at 587.6 nm and the Abbe number 33.5 is (nd - 1)/(nF - nC) from the same data.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/diamond.json b/assets/library/materials/gem/diamond.json
new file mode 100644
index 00000000..5f696c31
--- /dev/null
+++ b/assets/library/materials/gem/diamond.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/diamond",
+ "name": "Diamond",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 2.4175,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 55.3,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "F. Peter. Über Brechungsindizes und Absorptionskonstanten des Diamanten zwischen 644 und 226 mμ. Zeitschrift für Physik 15, 358-368 (1923); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/C/nk/Peter.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 2.4175 is the measured n at 587.6 nm and the Abbe number 55.3 is (nd - 1)/(nF - nC) from the same data.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/emerald.json b/assets/library/materials/gem/emerald.json
new file mode 100644
index 00000000..fe9988f6
--- /dev/null
+++ b/assets/library/materials/gem/emerald.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/emerald",
+ "name": "Emerald",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.58,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 70.9,
+ "transmission_color": [0.123, 0.2985, 0.1246],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "green", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "GIA Gem Encyclopedia, Emerald: refractive index 1.577 to 1.583; LibreTexts Geosciences, Gemology, Emerald: dispersion 0.014",
+ "urls": ["https://www.gia.edu/emerald/gem-overview", "https://geo.libretexts.org/Bookshelves/Geology/Gemology/16%3A_Gemstones/16.04%3A_Beryl/16.4.03%3A_Emerald"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.58: the mid value of 1.577 to 1.583 (GIA); dispersion 0.014 from LibreTexts Gemology. The Abbe number 70.9 is converted from the published B-G dispersion 0.014 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #1f9a5a, the green of chromium and vanadium in beryl, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/fluorite-purple.json b/assets/library/materials/gem/fluorite-purple.json
new file mode 100644
index 00000000..3eb43ab8
--- /dev/null
+++ b/assets/library/materials/gem/fluorite-purple.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/fluorite-purple",
+ "name": "Fluorite, purple",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4338,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 95.0,
+ "transmission_color": [0.2893, 0.2026, 0.5296],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "purple", "tinted", "mineral"],
+ "source": {
+ "kind": "measured",
+ "reference": "I. H. Malitson. A redetermination of some optical properties of calcium fluoride. Appl. Opt. 2, 1103-1107 (1963); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/CaF2/nk/Malitson.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.4338 is the measured n at 587.6 nm and the Abbe number 95.0 is (nd - 1)/(nF - nC) from the same data. transmission_color authored as sRGB #9a78c8, the lavender of colour centres in fluorite, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/garnet-almandine.json b/assets/library/materials/gem/garnet-almandine.json
new file mode 100644
index 00000000..71f35ded
--- /dev/null
+++ b/assets/library/materials/gem/garnet-almandine.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/garnet-almandine",
+ "name": "Garnet, almandine",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.81,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 57.7,
+ "transmission_color": [0.1225, 0.0203, 0.0201],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "red", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.81: the mid value of 1.79 to 1.83 (CAMEO). The Abbe number 57.7 is converted from the published B-G dispersion 0.024 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #7a1424, deep purplish red almandine, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/moissanite.json b/assets/library/materials/gem/moissanite.json
new file mode 100644
index 00000000..3b867497
--- /dev/null
+++ b/assets/library/materials/gem/moissanite.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/moissanite",
+ "name": "Moissanite",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 2.648,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 26.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery", "synthetic"],
+ "source": {
+ "kind": "measured",
+ "reference": "S. Wang, M. Zhan, G. Wang, H. Xuan, W. Zhang, C. Liu, C. Xu, Y. Liu, Z. Wei, X. Chen. 4H-SiC: A new nonlinear material for midinfrared lasers. Laser Photonics Rev. 7, 831-838 (2013); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiC/nk/Wang-6H-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 2.648 is the measured n at 587.6 nm and the Abbe number 26.0 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled).",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/peridot.json b/assets/library/materials/gem/peridot.json
new file mode 100644
index 00000000..f9e894e2
--- /dev/null
+++ b/assets/library/materials/gem/peridot.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/peridot",
+ "name": "Peridot",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.67,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 57.3,
+ "transmission_color": [0.3782, 0.506, 0.0846],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "green", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.67: the mid value of the beta index 1.652 to 1.698 (CAMEO). The Abbe number 57.3 is converted from the published B-G dispersion 0.02 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #9ac02a, olive green of iron in olivine, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/rock-crystal.json b/assets/library/materials/gem/rock-crystal.json
new file mode 100644
index 00000000..bdea1b04
--- /dev/null
+++ b/assets/library/materials/gem/rock-crystal.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/rock-crystal",
+ "name": "Quartz, rock crystal",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5443,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 69.7,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "mineral"],
+ "source": {
+ "kind": "measured",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.5443 is the measured n at 587.6 nm and the Abbe number 69.7 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled).",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/ruby.json b/assets/library/materials/gem/ruby.json
new file mode 100644
index 00000000..4f7a4ac4
--- /dev/null
+++ b/assets/library/materials/gem/ruby.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/ruby",
+ "name": "Ruby",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.7682,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 72.3,
+ "transmission_color": [0.3261, 0.0421, 0.0333],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "red", "tinted", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "I. H. Malitson and M. J. Dodge. Refractive index and birefringence of synthetic sapphire. J. Opt. Soc. Am. 62, 1405 (1972); M. J. Dodge. \"Refractive index\" in Handbook of Laser Science and Technology, Volume IV, Optical Materials: Part 2, CRC Press, Boca Raton, 1986, p. 30 * Ref. 1 is a talk abstract in a conference program; Ref. 2 provides a dispersion formula; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al2O3/nk/Malitson-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.7682 is the measured n at 587.6 nm and the Abbe number 72.3 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled). transmission_color authored as sRGB #c0102c, the red of chromium in corundum, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/sapphire-blue.json b/assets/library/materials/gem/sapphire-blue.json
new file mode 100644
index 00000000..8d2841d0
--- /dev/null
+++ b/assets/library/materials/gem/sapphire-blue.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/sapphire-blue",
+ "name": "Sapphire, blue",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.7682,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 72.3,
+ "transmission_color": [0.0425, 0.0516, 0.3463],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "blue", "tinted", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "I. H. Malitson and M. J. Dodge. Refractive index and birefringence of synthetic sapphire. J. Opt. Soc. Am. 62, 1405 (1972); M. J. Dodge. \"Refractive index\" in Handbook of Laser Science and Technology, Volume IV, Optical Materials: Part 2, CRC Press, Boca Raton, 1986, p. 30 * Ref. 1 is a talk abstract in a conference program; Ref. 2 provides a dispersion formula; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al2O3/nk/Malitson-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.7682 is the measured n at 587.6 nm and the Abbe number 72.3 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled). transmission_color authored as sRGB #1c3fa8, the cornflower blue of iron and titanium in corundum, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/smoky-quartz.json b/assets/library/materials/gem/smoky-quartz.json
new file mode 100644
index 00000000..afa4d3da
--- /dev/null
+++ b/assets/library/materials/gem/smoky-quartz.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/smoky-quartz",
+ "name": "Quartz, smoky",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5443,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 69.7,
+ "transmission_color": [0.1664, 0.1315, 0.0878],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "brown", "tinted", "mineral"],
+ "source": {
+ "kind": "measured",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.5443 is the measured n at 587.6 nm and the Abbe number 69.7 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled). transmission_color authored as sRGB #7a6450, the grey-brown of irradiated aluminium centres in quartz, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/spinel-red.json b/assets/library/materials/gem/spinel-red.json
new file mode 100644
index 00000000..88822915
--- /dev/null
+++ b/assets/library/materials/gem/spinel-red.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/spinel-red",
+ "name": "Spinel, red",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.7162,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 60.7,
+ "transmission_color": [0.3305, 0.0509, 0.057],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "red", "tinted", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "W. J. Tropf and M. E. Thomas, Magnesium aluminum spinel (MgAlO4), in E. D. Palik (ed.), Handbook of Optical Constants of Solids II, Academic Press, Orlando, 1991, pp. 881-8952) Handbook of Optics, 3rd edition, Vol. 4. McGraw-Hill 2009* Ref. 2 provides improved Sellmeier equation based on data from Ref. 1; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/MgAl2O4/nk/Tropf.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.7162 is the measured n at 587.6 nm and the Abbe number 60.7 is (nd - 1)/(nF - nC) from the same data. transmission_color authored as sRGB #c02040, chromium red spinel, reached through 0.005 m, a typical stone's depth.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/topaz-blue.json b/assets/library/materials/gem/topaz-blue.json
new file mode 100644
index 00000000..fbbbfcf0
--- /dev/null
+++ b/assets/library/materials/gem/topaz-blue.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/topaz-blue",
+ "name": "Topaz, blue",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.62,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 75.8,
+ "transmission_color": [0.2282, 0.3752, 0.6423],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "blue", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.62: the beta index of 1.609 to 1.631 (CAMEO), mid value. The Abbe number 75.8 is converted from the published B-G dispersion 0.014 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #5aa8d8, the sky blue of treated topaz, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/tourmaline-green.json b/assets/library/materials/gem/tourmaline-green.json
new file mode 100644
index 00000000..50e5db0d
--- /dev/null
+++ b/assets/library/materials/gem/tourmaline-green.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/tourmaline-green",
+ "name": "Tourmaline, green",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.645,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 69.0,
+ "transmission_color": [0.1155, 0.2368, 0.0883],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "green", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.645: between the extraordinary 1.610 to 1.650 and ordinary 1.635 to 1.675 indices (CAMEO). The Abbe number 69.0 is converted from the published B-G dispersion 0.016 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #3a8a4a, the green of iron in verdelite, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/tourmaline-pink.json b/assets/library/materials/gem/tourmaline-pink.json
new file mode 100644
index 00000000..52168d61
--- /dev/null
+++ b/assets/library/materials/gem/tourmaline-pink.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/tourmaline-pink",
+ "name": "Tourmaline, pink",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.645,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 69.0,
+ "transmission_color": [0.5213, 0.1887, 0.3122],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "pink", "tinted", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.645: between the extraordinary 1.610 to 1.650 and ordinary 1.635 to 1.675 indices (CAMEO). The Abbe number 69.0 is converted from the published B-G dispersion 0.016 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #e06a9a, the pink of manganese in rubellite, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/white-sapphire.json b/assets/library/materials/gem/white-sapphire.json
new file mode 100644
index 00000000..35955ff0
--- /dev/null
+++ b/assets/library/materials/gem/white-sapphire.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/white-sapphire",
+ "name": "Sapphire, colourless",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.7682,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 72.3,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "I. H. Malitson and M. J. Dodge. Refractive index and birefringence of synthetic sapphire. J. Opt. Soc. Am. 62, 1405 (1972); M. J. Dodge. \"Refractive index\" in Handbook of Laser Science and Technology, Volume IV, Optical Materials: Part 2, CRC Press, Boca Raton, 1986, p. 30 * Ref. 1 is a talk abstract in a conference program; Ref. 2 provides a dispersion formula; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al2O3/nk/Malitson-o.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.7682 is the measured n at 587.6 nm and the Abbe number 72.3 is (nd - 1)/(nF - nC) from the same data (ordinary ray; the small birefringence is not modelled).",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/yag.json b/assets/library/materials/gem/yag.json
new file mode 100644
index 00000000..d8c9a254
--- /dev/null
+++ b/assets/library/materials/gem/yag.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/yag",
+ "name": "YAG, colourless",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.8328,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 52.6,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "optics", "synthetic"],
+ "source": {
+ "kind": "measured",
+ "reference": "D. E. Zelmon, D. L. Small and R. Page. Refractive-index measurements of undoped yttrium aluminum garnet from 0.4 to 5.0 μm. Appl. Opt. 37, 4933-4935 (1998); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Y3Al5O12/nk/Zelmon.yml"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.8328 is the measured n at 587.6 nm and the Abbe number 52.6 is (nd - 1)/(nF - nC) from the same data.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/gem/zircon.json b/assets/library/materials/gem/zircon.json
new file mode 100644
index 00000000..598f4787
--- /dev/null
+++ b/assets/library/materials/gem/zircon.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "gem/zircon",
+ "name": "Zircon, colourless",
+ "category": "Gem",
+ "type": "gem",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.94,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 33.5,
+ "transmission_color": [0.9597, 0.9561, 0.9262],
+ "transmission_depth": 0.005
+ },
+ "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery"],
+ "source": {
+ "kind": "published",
+ "reference": "Museum of Fine Arts Boston, CAMEO: Conservation and Art Materials Encyclopedia Online, Properties of Gemstones table",
+ "urls": ["https://cameo.mfa.org/wiki/Gemstone"],
+ "notes": "Faceted stone, dispersion on. specular_ior 1.94: the mid value of the ordinary 1.923 to 1.960 (CAMEO). The Abbe number 33.5 is converted from the published B-G dispersion 0.048 (nG - nB) with nF - nC = 0.5845 (nG - nB), Cauchy's two-term relation. transmission_color authored as sRGB #fbfaf6, near colourless, through 0.005 m.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/bottle-glass-amber.json b/assets/library/materials/glass/bottle-glass-amber.json
new file mode 100644
index 00000000..202d0558
--- /dev/null
+++ b/assets/library/materials/glass/bottle-glass-amber.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/bottle-glass-amber",
+ "name": "Bottle glass, amber",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.2734, 0.117, 0.0229],
+ "transmission_depth": 0.003,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "brown", "tinted", "packaging"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire. transmission_color authored as sRGB #a8580f, the amber of iron-sulphur coloured container glass through a 3 mm wall; the measured clear soda-lime index is kept.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/bottle-glass-green.json b/assets/library/materials/glass/bottle-glass-green.json
new file mode 100644
index 00000000..f4f989b8
--- /dev/null
+++ b/assets/library/materials/glass/bottle-glass-green.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/bottle-glass-green",
+ "name": "Bottle glass, green",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.1599, 0.3022, 0.0789],
+ "transmission_depth": 0.003,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "green", "tinted", "packaging"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire. transmission_color authored as sRGB #4f9a3e, the green of iron and chromium coloured container glass seen through a 3 mm wall; the measured clear soda-lime index is kept.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/cobalt-blue-glass.json b/assets/library/materials/glass/cobalt-blue-glass.json
new file mode 100644
index 00000000..b81ff58f
--- /dev/null
+++ b/assets/library/materials/glass/cobalt-blue-glass.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/cobalt-blue-glass",
+ "name": "Cobalt blue glass",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.0453, 0.0522, 0.3739],
+ "transmission_depth": 0.003,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "blue", "tinted", "tableware"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire. transmission_color authored as sRGB #1f3fae, the deep blue of cobalt oxide glass through a 3 mm wall; the measured clear soda-lime index is kept.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/dense-flint-n-sf11.json b/assets/library/materials/glass/dense-flint-n-sf11.json
new file mode 100644
index 00000000..b4d6b4ed
--- /dev/null
+++ b/assets/library/materials/glass/dense-flint-n-sf11.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/dense-flint-n-sf11",
+ "name": "Dense flint glass (N-SF11)",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.7847,
+ "transmission_weight": 1.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 25.7
+ },
+ "tags": ["glass", "transparent", "clear", "optics", "dispersion"],
+ "source": {
+ "kind": "published",
+ "reference": "SCHOTT Zemax catalog 2017-01-20b (obtained from http://www.schott.com)See also SCHOTT glass data sheets; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/specs/schott/optical/N-SF11.yml"],
+ "notes": "specular_ior 1.7847 is the measured n at 587.6 nm and Abbe number 25.7 is (nd - 1)/(nF - nC) from the same data. Dispersion on (scale 1): visible fire is part of this glass's look.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/fused-silica.json b/assets/library/materials/glass/fused-silica.json
new file mode 100644
index 00000000..20507223
--- /dev/null
+++ b/assets/library/materials/glass/fused-silica.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/fused-silica",
+ "name": "Fused silica",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4585,
+ "transmission_weight": 1.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 67.8
+ },
+ "tags": ["glass", "transparent", "clear", "optics"],
+ "source": {
+ "kind": "published",
+ "reference": "I. H. Malitson. Interspecimen comparison of the refractive index of fused silica. J. Opt. Soc. Am. 55, 1205-1208 (1965); C. Z. Tan. Determination of refractive index of silica glass for infrared wavelengths by IR spectroscopy. J. Non-Cryst. Solids 223, 158-163 (1998) * Sellmeier formula is reported in Ref. 1 for the 0.21-3.71 μm wavelength range. Ref. 2 verifies the validity of the formula up to 6.7 μm.; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Malitson.yml"],
+ "notes": "specular_ior 1.4585 is the measured n at 587.6 nm and Abbe number 67.8 is (nd - 1)/(nF - nC) from the same data. Dispersion on (scale 1): visible fire is part of this glass's look.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/opal-glass.json b/assets/library/materials/glass/opal-glass.json
new file mode 100644
index 00000000..6fccd000
--- /dev/null
+++ b/assets/library/materials/glass/opal-glass.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/opal-glass",
+ "name": "Opal glass",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [0.8864, 0.8875, 0.8593],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.05,
+ "specular_ior": 1.5234,
+ "transmission_weight": 0.0,
+ "subsurface_weight": 1.0,
+ "subsurface_color": [0.8864, 0.8875, 0.8593],
+ "subsurface_radius": 0.002,
+ "subsurface_radius_scale": [1.0, 0.9, 0.8]
+ },
+ "tags": ["glass", "translucent", "subsurface", "white", "lighting"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "Opal (milk) glass: a clear soda-lime base (measured n 1.5234) with light-scattering inclusions, modelled as subsurface with transmission off. Colour sRGB #f2f2ee, mean free path 2 mm and the warm radius scale are authored so a 3 mm lamp shade diffuses fully.",
+ "authored": ["base_color", "specular_roughness", "subsurface_color", "subsurface_radius", "subsurface_radius_scale"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/optical-crown-n-bk7.json b/assets/library/materials/glass/optical-crown-n-bk7.json
new file mode 100644
index 00000000..5de0f3bb
--- /dev/null
+++ b/assets/library/materials/glass/optical-crown-n-bk7.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/optical-crown-n-bk7",
+ "name": "Optical crown glass (N-BK7)",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5168,
+ "transmission_weight": 1.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 64.2
+ },
+ "tags": ["glass", "transparent", "clear", "optics"],
+ "source": {
+ "kind": "published",
+ "reference": "SCHOTT Zemax catalog 2017-01-20b (obtained from http://www.schott.com) See also SCHOTT glass data sheets; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/specs/schott/optical/N-BK7.yml"],
+ "notes": "specular_ior 1.5168 is the measured n at 587.6 nm and Abbe number 64.2 is (nd - 1)/(nF - nC) from the same data. Dispersion on (scale 1): visible fire is part of this glass's look.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/optical-flint-n-f2.json b/assets/library/materials/glass/optical-flint-n-f2.json
new file mode 100644
index 00000000..80f7e278
--- /dev/null
+++ b/assets/library/materials/glass/optical-flint-n-f2.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/optical-flint-n-f2",
+ "name": "Optical flint glass (N-F2)",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.6201,
+ "transmission_weight": 1.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 1.0,
+ "transmission_dispersion_abbe_number": 36.4
+ },
+ "tags": ["glass", "transparent", "clear", "optics", "dispersion"],
+ "source": {
+ "kind": "published",
+ "reference": "SCHOTT Zemax catalog 2017-01-20b (obtained from http://www.schott.com)See also SCHOTT glass data sheets; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/specs/schott/optical/N-F2.yml"],
+ "notes": "specular_ior 1.6201 is the measured n at 587.6 nm and Abbe number 36.4 is (nd - 1)/(nF - nC) from the same data. Dispersion on (scale 1): visible fire is part of this glass's look.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-glass-bronze.json b/assets/library/materials/glass/window-glass-bronze.json
new file mode 100644
index 00000000..ac7cf925
--- /dev/null
+++ b/assets/library/materials/glass/window-glass-bronze.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-glass-bronze",
+ "name": "Window glass, bronze tint",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.6105, 0.5673, 0.4963],
+ "transmission_depth": 0.006,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "brown", "tinted", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-bronze.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through transmission_depth 0.006 m; the depth was chosen so the colour is strong enough to keep its hue in RGB. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": ["transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-glass-clear.json b/assets/library/materials/glass/window-glass-clear.json
new file mode 100644
index 00000000..52dd73cc
--- /dev/null
+++ b/assets/library/materials/glass/window-glass-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-glass-clear",
+ "name": "Window glass, clear",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.6033, 0.773, 0.7639],
+ "transmission_depth": 0.05,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "clear", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through transmission_depth 0.05 m; the depth was chosen so the colour is strong enough to keep its hue in RGB. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": ["transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-glass-frosted.json b/assets/library/materials/glass/window-glass-frosted.json
new file mode 100644
index 00000000..8d2aaa02
--- /dev/null
+++ b/assets/library/materials/glass/window-glass-frosted.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-glass-frosted",
+ "name": "Window glass, frosted",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.6033, 0.773, 0.7639],
+ "transmission_depth": 0.05,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "clear", "frosted", "translucent", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through transmission_depth 0.05 m; the depth was chosen so the colour is strong enough to keep its hue in RGB. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire. Roughness 0.35 authored for an acid-etched surface.",
+ "authored": ["specular_roughness", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-glass-green.json b/assets/library/materials/glass/window-glass-green.json
new file mode 100644
index 00000000..7b104e6c
--- /dev/null
+++ b/assets/library/materials/glass/window-glass-green.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-glass-green",
+ "name": "Window glass, green tint",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.3827, 0.573, 0.5777],
+ "transmission_depth": 0.02,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "green", "tinted", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-green.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through transmission_depth 0.02 m; the depth was chosen so the colour is strong enough to keep its hue in RGB. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": ["transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-glass-grey.json b/assets/library/materials/glass/window-glass-grey.json
new file mode 100644
index 00000000..6928130e
--- /dev/null
+++ b/assets/library/materials/glass/window-glass-grey.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-glass-grey",
+ "name": "Window glass, grey tint",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.4563, 0.4663, 0.4886],
+ "transmission_depth": 0.006,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "grey", "tinted", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-grey.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through transmission_depth 0.006 m; the depth was chosen so the colour is strong enough to keep its hue in RGB. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": ["transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-glass-low-iron.json b/assets/library/materials/glass/window-glass-low-iron.json
new file mode 100644
index 00000000..d2b870b7
--- /dev/null
+++ b/assets/library/materials/glass/window-glass-low-iron.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-glass-low-iron",
+ "name": "Window glass, low iron",
+ "category": "Glass",
+ "type": "glass",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.6326, 0.7898, 0.7875],
+ "transmission_depth": 0.2,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0
+ },
+ "tags": ["glass", "transparent", "clear", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-lowiron.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through transmission_depth 0.2 m; the depth was chosen so the colour is strong enough to keep its hue in RGB. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": ["transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-pane-thin-bronze.json b/assets/library/materials/glass/window-pane-thin-bronze.json
new file mode 100644
index 00000000..2e4df5c3
--- /dev/null
+++ b/assets/library/materials/glass/window-pane-thin-bronze.json
@@ -0,0 +1,29 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-pane-thin-bronze",
+ "name": "Window pane, thin bronze",
+ "category": "Glass",
+ "type": "glass_thin",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.6105, 0.5673, 0.4963],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0,
+ "geometry_thin_walled": true
+ },
+ "tags": ["glass", "transparent", "brown", "tinted", "architectural", "thin-walled"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-bronze.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through one 6 mm pane, applied at the surface of the thin shell. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-pane-thin-frosted.json b/assets/library/materials/glass/window-pane-thin-frosted.json
new file mode 100644
index 00000000..4f0d3f34
--- /dev/null
+++ b/assets/library/materials/glass/window-pane-thin-frosted.json
@@ -0,0 +1,29 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-pane-thin-frosted",
+ "name": "Window pane, thin frosted",
+ "category": "Glass",
+ "type": "glass_thin",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.94, 0.9693, 0.968],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0,
+ "geometry_thin_walled": true
+ },
+ "tags": ["glass", "transparent", "clear", "frosted", "architectural", "thin-walled"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through one 6 mm pane, applied at the surface of the thin shell. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire. Roughness 0.35 authored for an acid-etched pane.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/glass/window-pane-thin.json b/assets/library/materials/glass/window-pane-thin.json
new file mode 100644
index 00000000..ffc4f283
--- /dev/null
+++ b/assets/library/materials/glass/window-pane-thin.json
@@ -0,0 +1,29 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "glass/window-pane-thin",
+ "name": "Window pane, thin shell",
+ "category": "Glass",
+ "type": "glass_thin",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.5234,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.94, 0.9693, 0.968],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.0,
+ "geometry_thin_walled": true
+ },
+ "tags": ["glass", "transparent", "clear", "architectural", "thin-walled"],
+ "source": {
+ "kind": "published",
+ "reference": "M. Rubin. Optical properties of soda lime silica glasses. Sol. Energy Mater. 12, 275-288 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/glass/misc/soda-lime/nk/Rubin-clear.yml"],
+ "notes": "specular_ior 1.5234 is the measured n at 587.6 nm and Abbe number 64.0 is (nd - 1)/(nF - nC) from the same data. transmission_color is the measured absorption (Beer-Lambert from k, CIE 1931 under D65) through one 6 mm pane, applied at the surface of the thin shell. Dispersion stored but off (scale 0); set the scale to 1 for spectral fire.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/index.json b/assets/library/materials/index.json
new file mode 100644
index 00000000..bac20f87
--- /dev/null
+++ b/assets/library/materials/index.json
@@ -0,0 +1,270 @@
+{
+ "format": "formshot-material-index",
+ "version": 1,
+ "count": 249,
+ "categories": [
+ {"name": "Metal", "folder": "metal", "count": 73},
+ {"name": "Plastic", "folder": "plastic", "count": 37},
+ {"name": "Glass", "folder": "glass", "count": 17},
+ {"name": "Paint", "folder": "paint", "count": 22},
+ {"name": "Rubber", "folder": "rubber", "count": 9},
+ {"name": "Fabric", "folder": "fabric", "count": 13},
+ {"name": "Wood", "folder": "wood", "count": 10},
+ {"name": "Stone", "folder": "stone", "count": 10},
+ {"name": "Ceramic", "folder": "ceramic", "count": 10},
+ {"name": "Liquid", "folder": "liquid", "count": 17},
+ {"name": "Gem", "folder": "gem", "count": 22},
+ {"name": "Emissive", "folder": "emissive", "count": 9}
+ ],
+ "presets": [
+ {"id": "metal/aluminium-anodised-black", "name": "Aluminium, anodised black", "category": "Metal", "type": "metal", "tags": ["anodised", "black", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-black.json", "sha256": "e3319368e21485873c0a3b5584fef499c8e822086a025bb5d5d15f4b49707e26"},
+ {"id": "metal/aluminium-anodised-blue", "name": "Aluminium, anodised blue", "category": "Metal", "type": "metal", "tags": ["anodised", "blue", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-blue.json", "sha256": "dbb15e75bf823ae3f3dfa4b222d9e9971393ae76f1ff4341b4dd3385667bccd6"},
+ {"id": "metal/aluminium-anodised-bronze", "name": "Aluminium, anodised bronze", "category": "Metal", "type": "metal", "tags": ["anodised", "brown", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-bronze.json", "sha256": "ce2b034542fd9f9726878f5f26222fae9d72c4f2e032ee78000ed02be78e4672"},
+ {"id": "metal/aluminium-anodised-gold", "name": "Aluminium, anodised gold", "category": "Metal", "type": "metal", "tags": ["anodised", "gold", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-gold.json", "sha256": "dfd778541d7bd49fbd4dc6998a402cff4a6134de3e7980c645d853908b557800"},
+ {"id": "metal/aluminium-anodised-green", "name": "Aluminium, anodised green", "category": "Metal", "type": "metal", "tags": ["anodised", "green", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-green.json", "sha256": "76a5ea0d49c602c4116bdf38527cb73cc700acf657c0f22ff15687bf1d4a7532"},
+ {"id": "metal/aluminium-anodised-purple", "name": "Aluminium, anodised purple", "category": "Metal", "type": "metal", "tags": ["anodised", "purple", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-purple.json", "sha256": "3c5d57e19fd2e50230f323656b691b98ea73f63efb05c32ccbc3af4a7347d9aa"},
+ {"id": "metal/aluminium-anodised-red", "name": "Aluminium, anodised red", "category": "Metal", "type": "metal", "tags": ["anodised", "red", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-red.json", "sha256": "e47a965ff2a6700c901661c475d369665dc3bd1ac19731d49d2f53f5a38139c9"},
+ {"id": "metal/aluminium-anodised-rose", "name": "Aluminium, anodised rose", "category": "Metal", "type": "metal", "tags": ["anodised", "pink", "satin", "coat", "electronics"], "file": "metal/aluminium-anodised-rose.json", "sha256": "79009dc5590e467a4dc0c117c477664d4856ac66f39257e8b70714849abe5112"},
+ {"id": "metal/aluminium-as-cast", "name": "Aluminium, as cast", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "electronics", "rough", "opaque"], "file": "metal/aluminium-as-cast.json", "sha256": "2625f0c3f013c75b0f20fb5db358dccbf5e5050724aa2b0893d95e1abeced0c7"},
+ {"id": "metal/aluminium-bead-blasted", "name": "Aluminium, bead blasted", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "electronics", "rough", "opaque"], "file": "metal/aluminium-bead-blasted.json", "sha256": "5efa38a7b957f4490c38a0babaa680a276cde3e0d110111df8a35ee7bed3b5c3"},
+ {"id": "metal/aluminium-brushed", "name": "Aluminium, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["pure-metal", "silver", "electronics", "brushed", "opaque", "anisotropic"], "file": "metal/aluminium-brushed.json", "sha256": "1b5804d9ab98f1289b91bc65ec50928a5767bf84726e68d402293fed4993bf82"},
+ {"id": "metal/aluminium-polished", "name": "Aluminium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"], "file": "metal/aluminium-polished.json", "sha256": "d28b1b611eb8f56181f542816289c9f08835e00bd55bbd34d1da2d5cd4b77d9a"},
+ {"id": "metal/aluminium-satin", "name": "Aluminium, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "electronics", "satin", "opaque"], "file": "metal/aluminium-satin.json", "sha256": "55e62f68e122063083f0229840a341b6ca0cebda706cc0fcf1b7def4cdc3b1a2"},
+ {"id": "metal/beryllium-polished", "name": "Beryllium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/beryllium-polished.json", "sha256": "1aa06f880b5e6bded0fe4d962a4ec6fc10da8ad2d7fee193ffac65921f8a72b5"},
+ {"id": "metal/bismuth-polished", "name": "Bismuth, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "polished", "opaque"], "file": "metal/bismuth-polished.json", "sha256": "5f674958eb28cf639362128eca9d2b17a2465b9d31e089e9ef10bdfe392d6ce7"},
+ {"id": "metal/brass-polished", "name": "Brass (Cu70 Zn30), polished", "category": "Metal", "type": "metal", "tags": ["alloy", "gold", "architectural", "polished", "opaque"], "file": "metal/brass-polished.json", "sha256": "a47d30ea57e458d5610bcd7f65fa1e749480f0e954726078c866ddc1d6b38c0c"},
+ {"id": "metal/brass-brushed", "name": "Brass, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["alloy", "gold", "architectural", "brushed", "opaque", "anisotropic"], "file": "metal/brass-brushed.json", "sha256": "3be116c60408e12b486b50177ebb744e69868f9267b46065934a20dc3f586a9f"},
+ {"id": "metal/brass-satin", "name": "Brass, satin", "category": "Metal", "type": "metal", "tags": ["alloy", "gold", "architectural", "satin", "opaque"], "file": "metal/brass-satin.json", "sha256": "960a9c4d858584965ecebb2aa69899b55a85dd68b887b3285d260ca9a3a469b5"},
+ {"id": "metal/chromium-polished", "name": "Chromium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "automotive", "polished", "opaque"], "file": "metal/chromium-polished.json", "sha256": "3829789728a79166c9c2a54695aca55ce5ede8f24a3b79121c448c7973d8ee0f"},
+ {"id": "metal/chromium-satin", "name": "Chromium, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "automotive", "satin", "opaque"], "file": "metal/chromium-satin.json", "sha256": "50299c5d3b85ef58b5a0395392946f4d0cbba6a45859c413e7ef5e7bff87cb98"},
+ {"id": "metal/cobalt-polished", "name": "Cobalt, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"], "file": "metal/cobalt-polished.json", "sha256": "6409c98616a099464513afaf825cbe09813c60de510471542db3c2e7c4db4c86"},
+ {"id": "metal/copper-bead-blasted", "name": "Copper, bead blasted", "category": "Metal", "type": "metal", "tags": ["pure-metal", "orange", "kitchen", "rough", "opaque"], "file": "metal/copper-bead-blasted.json", "sha256": "59d1bb03f8c92676601b2ce4a3e652df7fb750f5e6c6f74e296640d02e0da1e7"},
+ {"id": "metal/copper-brushed", "name": "Copper, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["pure-metal", "orange", "kitchen", "brushed", "opaque", "anisotropic"], "file": "metal/copper-brushed.json", "sha256": "fdddce96524ccd25067abe8bc005cbe82dada9937803266b93affc185e3b292f"},
+ {"id": "metal/copper-polished", "name": "Copper, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "orange", "kitchen", "polished", "opaque"], "file": "metal/copper-polished.json", "sha256": "60199167394ccb582bf2fdd6ba246bff6584a2449744b979ca7fc3f38f0d6d31"},
+ {"id": "metal/copper-satin", "name": "Copper, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "orange", "kitchen", "satin", "opaque"], "file": "metal/copper-satin.json", "sha256": "bef260eecbd70c0d7fdbbeeb3edeaaf7a479927cd6211879d7265c598a3de8df"},
+ {"id": "metal/electrum-polished", "name": "Electrum (Au50 Ag50), polished", "category": "Metal", "type": "metal", "tags": ["alloy", "gold", "jewellery", "polished", "opaque"], "file": "metal/electrum-polished.json", "sha256": "48add1c8c0e2b1454e6542ad644b5e99285f839ce8f2f1ec0f6f37d487f3c543"},
+ {"id": "metal/gilding-metal-polished", "name": "Gilding metal (Cu90 Zn10), polished", "category": "Metal", "type": "metal", "tags": ["alloy", "orange", "polished", "opaque"], "file": "metal/gilding-metal-polished.json", "sha256": "40fc1d0dd4da229d4ca27274c9a21da097d028c322d1dbc55313638a10edf6eb"},
+ {"id": "metal/gold-brushed", "name": "Gold, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["pure-metal", "gold", "jewellery", "brushed", "opaque", "anisotropic"], "file": "metal/gold-brushed.json", "sha256": "1d4b377df9f05fad198e151412d92e2066e975101d11ede5681e3edabb76b35a"},
+ {"id": "metal/gold-polished", "name": "Gold, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "gold", "jewellery", "polished", "opaque"], "file": "metal/gold-polished.json", "sha256": "5ddd0a5c230892ad269d5f5778b85993bfa05c573bb93e40d56e76148a60014c"},
+ {"id": "metal/gold-satin", "name": "Gold, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "gold", "jewellery", "satin", "opaque"], "file": "metal/gold-satin.json", "sha256": "811a90b6b10977ec52aed29f3e7f5c1228e171585cff14dfc3359bc5d9a3d3ee"},
+ {"id": "metal/gold-silver-au60-polished", "name": "Gold-silver alloy (Au60 Ag40), polished", "category": "Metal", "type": "metal", "tags": ["alloy", "gold", "jewellery", "polished", "opaque"], "file": "metal/gold-silver-au60-polished.json", "sha256": "9b89c9f515dc775d61480f562cfdb5731c417c606747233ebbfe5a346b237a70"},
+ {"id": "metal/gold-silver-au80-polished", "name": "Gold-silver alloy (Au80 Ag20), polished", "category": "Metal", "type": "metal", "tags": ["alloy", "gold", "jewellery", "polished", "opaque"], "file": "metal/gold-silver-au80-polished.json", "sha256": "d2a52ac26f9fa234f3f9d11e33b28aedb412c2ee12338b3eb356988b487b9eb8"},
+ {"id": "metal/iridium-polished", "name": "Iridium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "polished", "opaque"], "file": "metal/iridium-polished.json", "sha256": "69b5a06626ab69bdf481f09c57924abf9fc7ac57090df0ce285f287795f9c206"},
+ {"id": "metal/iron-as-cast", "name": "Iron, as cast", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "rough", "opaque"], "file": "metal/iron-as-cast.json", "sha256": "1a68f3c9d428b0a1a0c18dc4d54d556420a10e936f523f1b14b60ee7938a5635"},
+ {"id": "metal/iron-bead-blasted", "name": "Iron, bead blasted", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "rough", "opaque"], "file": "metal/iron-bead-blasted.json", "sha256": "55d69418aaddce0f35f03a1d36664a7041cb4bb08018df4a63f2d0a6506a9c40"},
+ {"id": "metal/iron-polished", "name": "Iron, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/iron-polished.json", "sha256": "d04cd74175cf597341a12f4641693656397425e0a6837436b9796d948746dfd6"},
+ {"id": "metal/iron-satin", "name": "Iron, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "satin", "opaque"], "file": "metal/iron-satin.json", "sha256": "0c429270766c95a3be8c83da5efe1bd3f48a89afa73a075c35b5254d69215c72"},
+ {"id": "metal/lead-polished", "name": "Lead, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/lead-polished.json", "sha256": "288a4862a79ea22f11c5584a1a68f2456311b19060246e4850f0ba8ad20a37a6"},
+ {"id": "metal/magnesium-polished", "name": "Magnesium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"], "file": "metal/magnesium-polished.json", "sha256": "45100b01131f6abf5188dda1452dc46721a21e69c478949df0b284864ece612a"},
+ {"id": "metal/mercury-polished", "name": "Mercury (liquid), polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "polished", "opaque"], "file": "metal/mercury-polished.json", "sha256": "74d905938f30e63a4ac1a98f57facdaf7c1c8b64c50ac29d432fdefd04d21b57"},
+ {"id": "metal/molybdenum-polished", "name": "Molybdenum, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/molybdenum-polished.json", "sha256": "cd8912a20fc3e8cb7a62566758ea559466a62c70f86f12ae754dc5d85e7f7de8"},
+ {"id": "metal/nickel-brushed", "name": "Nickel, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["pure-metal", "silver", "industrial", "brushed", "opaque", "anisotropic"], "file": "metal/nickel-brushed.json", "sha256": "eec3c0e42779786e4edad7a2d6bd0c07588c85b00b78640bb3c242b758660642"},
+ {"id": "metal/nickel-polished", "name": "Nickel, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"], "file": "metal/nickel-polished.json", "sha256": "eda3d5f480c35c6e77077356dbaedeaf986f187b28e6d59881e7c1731cf0a11c"},
+ {"id": "metal/nickel-satin", "name": "Nickel, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "industrial", "satin", "opaque"], "file": "metal/nickel-satin.json", "sha256": "eb4c6c3a87ccb0820802294ed924a16b1c39f59f06388c722d1b0293f26909c7"},
+ {"id": "metal/niobium-polished", "name": "Niobium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "jewellery", "polished", "opaque"], "file": "metal/niobium-polished.json", "sha256": "20cdba04836498e49ef1a91e841e46828b2df27bdf6940de4048166124bb4f12"},
+ {"id": "metal/palladium-polished", "name": "Palladium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"], "file": "metal/palladium-polished.json", "sha256": "cfd6806e859e737effb1d5b45da7e83b82991759af7d78ecb019957c894d1b2b"},
+ {"id": "metal/platinum-polished", "name": "Platinum, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"], "file": "metal/platinum-polished.json", "sha256": "fc7f698415f8da212439f7de3a6f9ff8824cc15f9a82ac13986f7dae8d098b72"},
+ {"id": "metal/red-brass-polished", "name": "Red brass (Cu85 Zn15), polished", "category": "Metal", "type": "metal", "tags": ["alloy", "orange", "polished", "opaque"], "file": "metal/red-brass-polished.json", "sha256": "b2deca162ded2c8b846edc3a453a82b6c91e372607a99b30137b2de2af5455b6"},
+ {"id": "metal/rhodium-polished", "name": "Rhodium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"], "file": "metal/rhodium-polished.json", "sha256": "6d0eac0b891e436582f2e91f76cc6ac9265dd6146f82fefc9ce7f4faa65e506e"},
+ {"id": "metal/rose-gold-polished", "name": "Rose gold, polished", "category": "Metal", "type": "metal", "tags": ["alloy", "pink", "polished", "jewellery", "opaque"], "file": "metal/rose-gold-polished.json", "sha256": "4ab001ab291dfcf43a7081aaa8b4e63ba9268e8e35881a9c5c48167876567673"},
+ {"id": "metal/silver-brushed", "name": "Silver, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["pure-metal", "silver", "jewellery", "brushed", "opaque", "anisotropic"], "file": "metal/silver-brushed.json", "sha256": "bb85ffeba267af3781bff1db1b136679443522a7c421c116ef457dd81be4f41d"},
+ {"id": "metal/silver-polished", "name": "Silver, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"], "file": "metal/silver-polished.json", "sha256": "b0cf03d436ce886ea7488499ef78ae32cfad0abffeb10c21704706b6fdcc7d49"},
+ {"id": "metal/silver-satin", "name": "Silver, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "silver", "jewellery", "satin", "opaque"], "file": "metal/silver-satin.json", "sha256": "0bf4f22f89efa922d5eb9a286a2a256c60aff57e6157cf24740a54e070f2c85e"},
+ {"id": "metal/stainless-steel-austenitic-polished", "name": "Stainless steel, austenitic, polished", "category": "Metal", "type": "metal", "tags": ["alloy", "silver", "kitchen", "polished", "opaque"], "file": "metal/stainless-steel-austenitic-polished.json", "sha256": "bdc9b907ad3ed70a3a6117279593608d4c9742892490d89611845f1f4cd72e32"},
+ {"id": "metal/stainless-steel-bead-blasted", "name": "Stainless steel, bead blasted", "category": "Metal", "type": "metal", "tags": ["alloy", "silver", "kitchen", "rough", "opaque"], "file": "metal/stainless-steel-bead-blasted.json", "sha256": "6e5714d71d366131f5d022085c4b8a1855d4ff9e2e63055e5d1ee1f2e0ae660c"},
+ {"id": "metal/stainless-steel-brushed", "name": "Stainless steel, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["alloy", "silver", "kitchen", "brushed", "opaque", "anisotropic"], "file": "metal/stainless-steel-brushed.json", "sha256": "a663ee78b9359d5b6f7b8695cc0c550d4ce7b1e40e6a2a2f129037edc50a5154"},
+ {"id": "metal/stainless-steel-ferritic-polished", "name": "Stainless steel, ferritic, polished", "category": "Metal", "type": "metal", "tags": ["alloy", "silver", "kitchen", "polished", "opaque"], "file": "metal/stainless-steel-ferritic-polished.json", "sha256": "e0cd93d608204aaa8ff3654c9bd4ad18b40363a75e6bfadd4f2dcd86a3ef817e"},
+ {"id": "metal/stainless-steel-mirror", "name": "Stainless steel, mirror", "category": "Metal", "type": "metal", "tags": ["alloy", "silver", "kitchen", "polished", "opaque"], "file": "metal/stainless-steel-mirror.json", "sha256": "fbf9ed4ed6c9ee4e446d443b82751f83d62baa597ba707d4ed3d8bc3526e5544"},
+ {"id": "metal/stainless-steel-satin", "name": "Stainless steel, satin", "category": "Metal", "type": "metal", "tags": ["alloy", "silver", "kitchen", "satin", "opaque"], "file": "metal/stainless-steel-satin.json", "sha256": "0360e514e0d0c529fba6cebca8f5c0f8dd162d60ad0a8c2035eb1c6ccd74eb9f"},
+ {"id": "metal/titanium-nitride-polished", "name": "Titanium nitride coating, polished", "category": "Metal", "type": "metal", "tags": ["coating", "gold", "industrial", "polished", "opaque"], "file": "metal/titanium-nitride-polished.json", "sha256": "3257456396bdfbc305cbc88230c5d889511b214f50740fa76ee5e0aca3f9d8c3"},
+ {"id": "metal/titanium-anodised-blue", "name": "Titanium, anodised blue", "category": "Metal", "type": "metal", "tags": ["anodised", "blue", "thin-film", "polished", "jewellery"], "file": "metal/titanium-anodised-blue.json", "sha256": "c4920cbcb9a0f58fc994916da506d115ab0e5c82c6606ec99f64f64b660fea08"},
+ {"id": "metal/titanium-anodised-bronze", "name": "Titanium, anodised bronze", "category": "Metal", "type": "metal", "tags": ["anodised", "brown", "thin-film", "polished", "jewellery"], "file": "metal/titanium-anodised-bronze.json", "sha256": "fb70a8d0acdb9e716faf3f0c579df2c31e666ab54d23849e05eac7d2537ebe1e"},
+ {"id": "metal/titanium-anodised-gold", "name": "Titanium, anodised gold", "category": "Metal", "type": "metal", "tags": ["anodised", "gold", "thin-film", "polished", "jewellery"], "file": "metal/titanium-anodised-gold.json", "sha256": "68056219754cea202c66df590d761e9f390d70b37d10cc47cceeeda1219e12d0"},
+ {"id": "metal/titanium-anodised-light-blue", "name": "Titanium, anodised light blue", "category": "Metal", "type": "metal", "tags": ["anodised", "blue", "thin-film", "polished", "jewellery"], "file": "metal/titanium-anodised-light-blue.json", "sha256": "67f69831efd0f08d7df5695a1a6b66799be976a94d6ea9ef0a08c51620e6c5fd"},
+ {"id": "metal/titanium-anodised-magenta", "name": "Titanium, anodised magenta", "category": "Metal", "type": "metal", "tags": ["anodised", "pink", "thin-film", "polished", "jewellery"], "file": "metal/titanium-anodised-magenta.json", "sha256": "164ee778a21abb313fccc7c5e2b986adbbbb001867d0c94bb49554db1fe48234"},
+ {"id": "metal/titanium-anodised-purple", "name": "Titanium, anodised purple", "category": "Metal", "type": "metal", "tags": ["anodised", "purple", "thin-film", "polished", "jewellery"], "file": "metal/titanium-anodised-purple.json", "sha256": "f776d2619076910aaf4b393c1c0eeaaed4c6459706d98aca229b0476b2dedc36"},
+ {"id": "metal/titanium-bead-blasted", "name": "Titanium, bead blasted", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "rough", "opaque"], "file": "metal/titanium-bead-blasted.json", "sha256": "aba9d62d2847e32810de2edd042208452ffbbe2188ff3ff916ad84dacb3b1a82"},
+ {"id": "metal/titanium-brushed", "name": "Titanium, brushed", "category": "Metal", "type": "metal_brushed", "tags": ["pure-metal", "grey", "industrial", "brushed", "opaque", "anisotropic"], "file": "metal/titanium-brushed.json", "sha256": "08ffe60e37b211a344ef82882177bc92acd55e54b98216423b2f8a57f6e21eb7"},
+ {"id": "metal/titanium-polished", "name": "Titanium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/titanium-polished.json", "sha256": "6c424eb99a6bbf055451e8ebecd92e3a34a5e85c5b7ecb2116b6973c0c1b81ac"},
+ {"id": "metal/titanium-satin", "name": "Titanium, satin", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "satin", "opaque"], "file": "metal/titanium-satin.json", "sha256": "bc6ee61e2dc8b4c1057364169b00eee9087ec218e8f833e0a01182132488b6ef"},
+ {"id": "metal/tungsten-polished", "name": "Tungsten, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/tungsten-polished.json", "sha256": "e44f12134699ff3ac81a019c1848d80d7f87ae7ac9f74441b9d29d4cc8ae80cb"},
+ {"id": "metal/vanadium-polished", "name": "Vanadium, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/vanadium-polished.json", "sha256": "b614288b606bcda8e94710b542e422538ffb561b30fa0b4db26d1bc7ee2961a1"},
+ {"id": "metal/zinc-polished", "name": "Zinc, polished", "category": "Metal", "type": "metal", "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"], "file": "metal/zinc-polished.json", "sha256": "732763d7c33b676e9c874beeb324f6069120fe13a8324981930ab3983fd0ec5f"},
+ {"id": "plastic/abs-black-gloss", "name": "ABS, black gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "black", "opaque", "electronics"], "file": "plastic/abs-black-gloss.json", "sha256": "4d16b80d20f34472a8f9c37df9f6edf4fc83444a0818456a16b818f7167446df"},
+ {"id": "plastic/abs-black-matte", "name": "ABS, black matte", "category": "Plastic", "type": "plastic", "tags": ["polymer", "matte", "black", "opaque", "electronics"], "file": "plastic/abs-black-matte.json", "sha256": "3a42d07ff55cc8de366a1a48385e2d2512e55ee762c1d0345451671c1ab2ef57"},
+ {"id": "plastic/abs-black-satin", "name": "ABS, black satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "black", "opaque", "electronics"], "file": "plastic/abs-black-satin.json", "sha256": "02e5784012240c61e66a2dd7ba7464e249f2592282ae531d5c13391fc3ffe665"},
+ {"id": "plastic/abs-blue-gloss", "name": "ABS, blue gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "blue", "opaque", "electronics"], "file": "plastic/abs-blue-gloss.json", "sha256": "52f74212813da0dd7d47ad06e378a920921a53087f742716cee2841d67e27c9b"},
+ {"id": "plastic/abs-grey-gloss", "name": "ABS, grey gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "grey", "opaque", "electronics"], "file": "plastic/abs-grey-gloss.json", "sha256": "3fa4cb6639685dd81e5f745a6dfbdfd253d934280502694346d4c60fdb73d7cf"},
+ {"id": "plastic/abs-grey-matte", "name": "ABS, grey matte", "category": "Plastic", "type": "plastic", "tags": ["polymer", "matte", "grey", "opaque", "electronics"], "file": "plastic/abs-grey-matte.json", "sha256": "ee1f4fe47ada2c7390c93c551f5f3f1099c0a3e170a34a38311d84d0819907cf"},
+ {"id": "plastic/abs-red-gloss", "name": "ABS, red gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "red", "opaque", "electronics"], "file": "plastic/abs-red-gloss.json", "sha256": "8c600ffea716f96b94d25473d504244106fa653ad13a35065250ca60bad77218"},
+ {"id": "plastic/abs-white-gloss", "name": "ABS, white gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "white", "opaque", "electronics"], "file": "plastic/abs-white-gloss.json", "sha256": "57a178493b5e38397e400a6631bbb2a7fbac703c8381b5a910a12285a27f1510"},
+ {"id": "plastic/abs-yellow-gloss", "name": "ABS, yellow gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "yellow", "opaque", "electronics"], "file": "plastic/abs-yellow-gloss.json", "sha256": "499ed022faa4650fa3b7d10a40f42395ec02f0b7a4da263541199129ad8f6444"},
+ {"id": "plastic/acetal-black-satin", "name": "Acetal, black satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "black", "opaque", "industrial"], "file": "plastic/acetal-black-satin.json", "sha256": "f502bd6be2bf8fa3214de2dff203f40a1596a6a8573a1ea922aea69d22e7298d"},
+ {"id": "plastic/acetal-white-satin", "name": "Acetal, white satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "white", "opaque", "industrial"], "file": "plastic/acetal-white-satin.json", "sha256": "9a9d2bb08090ab48544a4d6a1ce631f26acc219f6d571cf2f4d3aef3b479cb53"},
+ {"id": "plastic/acrylic-amber", "name": "Acrylic, amber tint", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "orange", "tinted", "gloss"], "file": "plastic/acrylic-amber.json", "sha256": "9685d7957b03adfc20e428191f40737e660ba1e52f65a7d577af870aee5f71ff"},
+ {"id": "plastic/acrylic-blue", "name": "Acrylic, blue tint", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "blue", "tinted", "gloss"], "file": "plastic/acrylic-blue.json", "sha256": "630ba0f369926d2a60b20e0921bfd05e375ef04b482f20cee5853dcc59789607"},
+ {"id": "plastic/acrylic-clear", "name": "Acrylic, clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "architectural"], "file": "plastic/acrylic-clear.json", "sha256": "68cdd2e4161e24ab1ab15730d4d33c3cb97182b64c29fb045ad33aa5538c893c"},
+ {"id": "plastic/acrylic-frosted", "name": "Acrylic, frosted", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "frosted", "translucent"], "file": "plastic/acrylic-frosted.json", "sha256": "392f606204345a830d2d5bac4c2bd76fba414294bc6ced731589bbb1b0135146"},
+ {"id": "plastic/acrylic-red", "name": "Acrylic, red tint", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "red", "tinted", "gloss"], "file": "plastic/acrylic-red.json", "sha256": "559c03caf34c7aafd923b8e2f46067c1f7b3da05a5ff90b387d0528f35100ebb"},
+ {"id": "plastic/acrylic-smoke", "name": "Acrylic, smoke grey", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "grey", "tinted", "gloss"], "file": "plastic/acrylic-smoke.json", "sha256": "eab9bf428c62445057f1bca187fdc5f699612d69e16dda6cb5c0df8d91e878ff"},
+ {"id": "plastic/cr39-clear", "name": "CR-39 lens resin, clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "optics"], "file": "plastic/cr39-clear.json", "sha256": "881640bfa8655f703903e4a45c5e1105949365e94bd1145112ca2c9780cd354b"},
+ {"id": "plastic/cellulose-acetate-clear", "name": "Cellulose acetate, clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "apparel"], "file": "plastic/cellulose-acetate-clear.json", "sha256": "3708e0f4aeee6b68360295183184de0f5602e8c903124ca90cc4f3993f36ef7b"},
+ {"id": "plastic/hdpe-natural", "name": "HDPE, natural translucent", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "white", "translucent", "subsurface", "packaging"], "file": "plastic/hdpe-natural.json", "sha256": "7590a3717c0c335f03f174c7a232466ff9cb6c420ae114b8860ab263f3987f5b"},
+ {"id": "plastic/hdpe-white-matte", "name": "HDPE, white matte", "category": "Plastic", "type": "plastic", "tags": ["polymer", "matte", "white", "opaque", "packaging"], "file": "plastic/hdpe-white-matte.json", "sha256": "626b032a49ba0d646c0d8cc58fd3a9a2b9076bb88d8b7fbbd0c737f08bee552c"},
+ {"id": "plastic/nylon-black-matte", "name": "Nylon, black matte", "category": "Plastic", "type": "plastic", "tags": ["polymer", "matte", "black", "opaque", "industrial"], "file": "plastic/nylon-black-matte.json", "sha256": "6103525b2de9155a04a0e55fb47632c850c3e560ae50bb16ff19274f152f1884"},
+ {"id": "plastic/nylon-natural-matte", "name": "Nylon, natural matte", "category": "Plastic", "type": "plastic", "tags": ["polymer", "matte", "white", "opaque", "industrial"], "file": "plastic/nylon-natural-matte.json", "sha256": "f0bdae950a2b2f12d4d0a2ed1e51b07e8dfdb385ff856a2f0f847af26ef2c812"},
+ {"id": "plastic/pet-amber", "name": "PET, amber bottle tint", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "brown", "tinted", "packaging"], "file": "plastic/pet-amber.json", "sha256": "cce163d890c153821da5a4b814762d3ae189127aae7fcec56676f4627a9f5cb6"},
+ {"id": "plastic/pet-clear", "name": "PET, clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "packaging"], "file": "plastic/pet-clear.json", "sha256": "60df5d5810d7f35bed6d21fe7d4b259cb969e58c9a90fca8563d52f9d6920ca2"},
+ {"id": "plastic/pet-green", "name": "PET, green bottle tint", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "green", "tinted", "packaging"], "file": "plastic/pet-green.json", "sha256": "c956aa84f68c0b1db2e627079fbdb3d346d1777ac3d8f7263d7d4bac69fa4c3a"},
+ {"id": "plastic/pla-orange-satin", "name": "PLA, orange satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "orange", "opaque", "industrial"], "file": "plastic/pla-orange-satin.json", "sha256": "983a1036799a9ef05b5630c6b89641f3a1642c622566cc89f8fe49783826c88b"},
+ {"id": "plastic/pla-white-satin", "name": "PLA, white satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "white", "opaque", "industrial"], "file": "plastic/pla-white-satin.json", "sha256": "a241bf1a7af598fa55d820bd7cc3271a23d1dfc06e74214dfc5bca42974db8cd"},
+ {"id": "plastic/pvc-grey-satin", "name": "PVC, grey satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "grey", "opaque", "architectural"], "file": "plastic/pvc-grey-satin.json", "sha256": "589f125f8cb822efa3938759746b5efdc4eba5698109d60e1211b14d3d752c2c"},
+ {"id": "plastic/pvc-white-gloss", "name": "PVC, white gloss", "category": "Plastic", "type": "plastic", "tags": ["polymer", "gloss", "white", "opaque", "architectural"], "file": "plastic/pvc-white-gloss.json", "sha256": "475adf37975f6436b7d999b92bd5046189c72741d1dc9af8d6d0ad9a3da0b613"},
+ {"id": "plastic/polycarbonate-clear", "name": "Polycarbonate, clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "electronics"], "file": "plastic/polycarbonate-clear.json", "sha256": "223a44668abcee09575644a69e52528c5c0a2f3a2fb5302498917b5467a1c118"},
+ {"id": "plastic/polycarbonate-frosted", "name": "Polycarbonate, frosted", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "frosted", "translucent", "lighting"], "file": "plastic/polycarbonate-frosted.json", "sha256": "733573726839288b51d6aab360ee432bda4826af870bd4fa34608f15a5a62d45"},
+ {"id": "plastic/polypropylene-black-satin", "name": "Polypropylene, black satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "black", "opaque", "automotive"], "file": "plastic/polypropylene-black-satin.json", "sha256": "12d67291733275622dcc43160656451749904e5003649da11eb6308e646f705e"},
+ {"id": "plastic/polypropylene-natural", "name": "Polypropylene, natural translucent", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "white", "translucent", "subsurface", "packaging"], "file": "plastic/polypropylene-natural.json", "sha256": "b927794f6c02662c8d556dfcc8ecb4d0551d66b6eaea94c3e70fe41fef9f19f8"},
+ {"id": "plastic/polypropylene-white-satin", "name": "Polypropylene, white satin", "category": "Plastic", "type": "plastic", "tags": ["polymer", "satin", "white", "opaque", "packaging"], "file": "plastic/polypropylene-white-satin.json", "sha256": "95adc92079d0dd4fe3df67bcb001ebb69d49996cc19eee21f4c0930fafa763e1"},
+ {"id": "plastic/polystyrene-clear", "name": "Polystyrene, clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "packaging"], "file": "plastic/polystyrene-clear.json", "sha256": "7fbd4bcabeb8e3860295165c80a56a5de25f00da43d38b233e8c0923d5aeb3e9"},
+ {"id": "plastic/pdms-clear", "name": "Silicone (PDMS), clear", "category": "Plastic", "type": "plastic_clear", "tags": ["polymer", "transparent", "clear", "gloss", "elastomer"], "file": "plastic/pdms-clear.json", "sha256": "03fe343af8e7eb1216145cdbdbb7b9e7a58449bf4fe5f85ccd758fbe464c8966"},
+ {"id": "glass/bottle-glass-amber", "name": "Bottle glass, amber", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "brown", "tinted", "packaging"], "file": "glass/bottle-glass-amber.json", "sha256": "4029884ec062191e388fab036749e361e16055e93f21b101f571f56d33632899"},
+ {"id": "glass/bottle-glass-green", "name": "Bottle glass, green", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "green", "tinted", "packaging"], "file": "glass/bottle-glass-green.json", "sha256": "49629b2ea6ed3e81aad2c51fbcf1f849fd353d6b57249215eb7609bac9520fb8"},
+ {"id": "glass/cobalt-blue-glass", "name": "Cobalt blue glass", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "blue", "tinted", "tableware"], "file": "glass/cobalt-blue-glass.json", "sha256": "f610826ddb3ba7bb21a6bb31495d1baed1b3abae0b5b2e866bba0fe7bd6627df"},
+ {"id": "glass/dense-flint-n-sf11", "name": "Dense flint glass (N-SF11)", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "optics", "dispersion"], "file": "glass/dense-flint-n-sf11.json", "sha256": "5048ae10d577990cd054a8cd45b68c2bdb22ccc36a26d87eec8ef1446ed3d05c"},
+ {"id": "glass/fused-silica", "name": "Fused silica", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "optics"], "file": "glass/fused-silica.json", "sha256": "3ef4166f1ac16c1b64e924f09f9fae9e8895773d51479b5f69e96bc0d109a179"},
+ {"id": "glass/opal-glass", "name": "Opal glass", "category": "Glass", "type": "glass", "tags": ["glass", "translucent", "subsurface", "white", "lighting"], "file": "glass/opal-glass.json", "sha256": "d3338f2e6887558f708fa92b8c4aa929033fd65b0ce92a00975a75dab8fe6e11"},
+ {"id": "glass/optical-crown-n-bk7", "name": "Optical crown glass (N-BK7)", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "optics"], "file": "glass/optical-crown-n-bk7.json", "sha256": "bfe8308c84aa1f7dd6237deccd3a9588626f7ca79166a94644c58ea705a8c221"},
+ {"id": "glass/optical-flint-n-f2", "name": "Optical flint glass (N-F2)", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "optics", "dispersion"], "file": "glass/optical-flint-n-f2.json", "sha256": "8ec949ee1545de949149c983d2cc1051f776aef2f0eb2ba8bf434dcd03e4a330"},
+ {"id": "glass/window-glass-bronze", "name": "Window glass, bronze tint", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "brown", "tinted", "architectural"], "file": "glass/window-glass-bronze.json", "sha256": "3fb400bf3f9d5b572be08a88e832c5624ef5df908f491933d2dd09b9157b6306"},
+ {"id": "glass/window-glass-clear", "name": "Window glass, clear", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "architectural"], "file": "glass/window-glass-clear.json", "sha256": "4953d7a83227a69611f29f7240a35114967374bf3df4bfeb158ddb169a764ff8"},
+ {"id": "glass/window-glass-frosted", "name": "Window glass, frosted", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "frosted", "translucent", "architectural"], "file": "glass/window-glass-frosted.json", "sha256": "97e7c4024b2c8caa52f9018a2f86f37f37609737e93fa92c8b7835f5b797eb04"},
+ {"id": "glass/window-glass-green", "name": "Window glass, green tint", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "green", "tinted", "architectural"], "file": "glass/window-glass-green.json", "sha256": "4c2d3e976daf72be7a2aecfceee7ec0e3620274c7390376995fb9b1bf7c46c45"},
+ {"id": "glass/window-glass-grey", "name": "Window glass, grey tint", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "grey", "tinted", "architectural"], "file": "glass/window-glass-grey.json", "sha256": "b1d199a6445b54afb55ce6056bfeb1fcb0091ec5f53b958faeb0134baa2c572a"},
+ {"id": "glass/window-glass-low-iron", "name": "Window glass, low iron", "category": "Glass", "type": "glass", "tags": ["glass", "transparent", "clear", "architectural"], "file": "glass/window-glass-low-iron.json", "sha256": "8d6ec233790b015bcfe859b1ba9b1b543f801a5dd684d3270eeac32177c130e6"},
+ {"id": "glass/window-pane-thin-bronze", "name": "Window pane, thin bronze", "category": "Glass", "type": "glass_thin", "tags": ["glass", "transparent", "brown", "tinted", "architectural", "thin-walled"], "file": "glass/window-pane-thin-bronze.json", "sha256": "2f1f1db44a5cc691623233d4bd0821d89a52ed04ba0f92d4a0ca703376900a79"},
+ {"id": "glass/window-pane-thin-frosted", "name": "Window pane, thin frosted", "category": "Glass", "type": "glass_thin", "tags": ["glass", "transparent", "clear", "frosted", "architectural", "thin-walled"], "file": "glass/window-pane-thin-frosted.json", "sha256": "43ad7758c481df4cffa6bcf6a8a72928584872f5b4b8d2e67a72138c767e7b27"},
+ {"id": "glass/window-pane-thin", "name": "Window pane, thin shell", "category": "Glass", "type": "glass_thin", "tags": ["glass", "transparent", "clear", "architectural", "thin-walled"], "file": "glass/window-pane-thin.json", "sha256": "d03d5f3c89efab99e2ebad6e630797087233daeab72a7b6c5750f69b4a295e9e"},
+ {"id": "paint/gloss-black", "name": "Gloss enamel, black", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "black", "opaque", "automotive"], "file": "paint/gloss-black.json", "sha256": "76ae12bde364f02188699ef2d48b0d388e855f090afeeeaba33a10032fb62139"},
+ {"id": "paint/gloss-blue", "name": "Gloss enamel, blue", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "blue", "opaque", "automotive"], "file": "paint/gloss-blue.json", "sha256": "7f11ee1c5644a171ed5fda407537f58b3c219569652e7f5fd63ae51d4e4e65dc"},
+ {"id": "paint/gloss-green", "name": "Gloss enamel, green", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "green", "opaque", "automotive"], "file": "paint/gloss-green.json", "sha256": "9afe034ecdd27497d5e8d3768c25a07f02a43ff9ff121c0fe4b6164e3ac68281"},
+ {"id": "paint/gloss-orange", "name": "Gloss enamel, orange", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "orange", "opaque", "industrial"], "file": "paint/gloss-orange.json", "sha256": "9339cdd63f8f08b142931428e79744cdcd95f66d811b95d3ea97255e0051aa1e"},
+ {"id": "paint/gloss-red", "name": "Gloss enamel, red", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "red", "opaque", "automotive"], "file": "paint/gloss-red.json", "sha256": "9e14205e538acd2f1569d2dce8383535de349e2d4809f4b764be4e8a0f67daea"},
+ {"id": "paint/gloss-white", "name": "Gloss enamel, white", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "white", "opaque", "furniture"], "file": "paint/gloss-white.json", "sha256": "ea8755af517ae5e62f8a13c2246f112092fbe1b92203139da0e70f76a8b7b25c"},
+ {"id": "paint/gloss-yellow", "name": "Gloss enamel, yellow", "category": "Paint", "type": "paint", "tags": ["paint", "gloss", "coat", "yellow", "opaque", "industrial"], "file": "paint/gloss-yellow.json", "sha256": "04c3c8236ec18a73fd729366251131c68b6f200981a0aa3f93ba893ba31ad273"},
+ {"id": "paint/matte-black", "name": "Matte paint, black", "category": "Paint", "type": "paint", "tags": ["paint", "matte", "black", "opaque", "industrial"], "file": "paint/matte-black.json", "sha256": "658e4c9925f15cca983890cba809b277b71a2663cdc9079616d07bd35eed4eab"},
+ {"id": "paint/matte-sage", "name": "Matte paint, sage green", "category": "Paint", "type": "paint", "tags": ["paint", "matte", "green", "opaque", "architectural"], "file": "paint/matte-sage.json", "sha256": "444d02eebda9b90de51d2f71e4ac8c3b8f42e0bc82b5ab1d8c0d513cd57facc4"},
+ {"id": "paint/matte-terracotta", "name": "Matte paint, terracotta", "category": "Paint", "type": "paint", "tags": ["paint", "matte", "orange", "opaque", "architectural"], "file": "paint/matte-terracotta.json", "sha256": "318f23ba653db2d950d20d0bdd4accf132fd273a8475e528fdeaf0dbd1753c0a"},
+ {"id": "paint/matte-white", "name": "Matte paint, white", "category": "Paint", "type": "paint", "tags": ["paint", "matte", "white", "opaque", "architectural"], "file": "paint/matte-white.json", "sha256": "a6fbfed5b02e4825c27403a3d7bc6e82a48e3f9d308c6d57b332a705e3c623b4"},
+ {"id": "paint/metallic-black", "name": "Metallic paint, black", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "black", "gloss", "automotive", "needs-graph"], "file": "paint/metallic-black.json", "sha256": "fcae9e243ebde50585b6edd70f5c735cab9161334e1e690414a6a77fa0c30e1d"},
+ {"id": "paint/metallic-blue", "name": "Metallic paint, blue", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "blue", "gloss", "automotive", "needs-graph"], "file": "paint/metallic-blue.json", "sha256": "18b73f9ab409bee929cf0f62770ec79c020d8ab4d5d849be4b4f9a5b72f48085"},
+ {"id": "paint/metallic-champagne", "name": "Metallic paint, champagne", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "gold", "gloss", "automotive", "needs-graph"], "file": "paint/metallic-champagne.json", "sha256": "9978f42f32d0e31445a76ed4febb1c4bb395c87c4850e2c8f159ec390a732f3e"},
+ {"id": "paint/metallic-gunmetal", "name": "Metallic paint, gunmetal", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "grey", "gloss", "automotive", "needs-graph"], "file": "paint/metallic-gunmetal.json", "sha256": "926384a686464dcb957795ddd8ccea1e987f24381964f3017a99cdeaa3384ff3"},
+ {"id": "paint/metallic-red", "name": "Metallic paint, red", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "red", "gloss", "automotive", "needs-graph"], "file": "paint/metallic-red.json", "sha256": "37ba392160e1421c489c22a81417daa3a32457fe0cd1c6b23b65f9d60d850e8b"},
+ {"id": "paint/metallic-silver", "name": "Metallic paint, silver", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "silver", "gloss", "automotive", "needs-graph"], "file": "paint/metallic-silver.json", "sha256": "4c4307f097f8c0cc29b82fa84b0d935ad12cd4c784c153724c4af8c64d719149"},
+ {"id": "paint/pearl-blue", "name": "Pearl paint, blue", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "thin-film", "blue", "gloss", "automotive", "needs-graph"], "file": "paint/pearl-blue.json", "sha256": "fd4cca065fdc0ef59ab8d284537b51149a095b015814de16ad83928232dd4918"},
+ {"id": "paint/pearl-white", "name": "Pearl paint, white", "category": "Paint", "type": "paint_metallic", "tags": ["paint", "coat", "thin-film", "white", "gloss", "automotive", "needs-graph"], "file": "paint/pearl-white.json", "sha256": "5a0e86bfb1cfcfb78c82a744bdfd2d91db27149cee4f140ad38a2379e338a6de"},
+ {"id": "paint/satin-blue", "name": "Satin paint, blue", "category": "Paint", "type": "paint", "tags": ["paint", "satin", "coat", "blue", "opaque", "furniture"], "file": "paint/satin-blue.json", "sha256": "46b0d166b8980a02038d79ec2e3cd6a3bc14c0c412075b6c9afd8c8ba8a2f704"},
+ {"id": "paint/satin-grey", "name": "Satin paint, grey", "category": "Paint", "type": "paint", "tags": ["paint", "satin", "coat", "grey", "opaque", "architectural"], "file": "paint/satin-grey.json", "sha256": "93f58c82eeeff3a93196a205de1937f5600ec02938331b86f5b67a3eb1486529"},
+ {"id": "paint/satin-white", "name": "Satin paint, white", "category": "Paint", "type": "paint", "tags": ["paint", "satin", "coat", "white", "opaque", "architectural"], "file": "paint/satin-white.json", "sha256": "cf68321d59e8e123de208d2208eed35fd38fc62e10af6200c71540d0e49f8ae4"},
+ {"id": "rubber/black-rubber-matte", "name": "Black rubber, matte", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "matte", "black", "opaque", "industrial"], "file": "rubber/black-rubber-matte.json", "sha256": "b7ed77663bf4013b2c3210a2e510a5f339d9107dc2cfd7cc4a61b8c251bcdd52"},
+ {"id": "rubber/black-rubber-satin", "name": "Black rubber, satin", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "satin", "black", "opaque", "industrial"], "file": "rubber/black-rubber-satin.json", "sha256": "b9b59849b41846501f4bacb437a7b0b1dabb48c0105874efe746e36be72954c8"},
+ {"id": "rubber/epdm-grey", "name": "EPDM rubber, grey", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "matte", "grey", "opaque", "architectural"], "file": "rubber/epdm-grey.json", "sha256": "0285c80ffb31952055f50a91d3807b91f99a2c054d12def958568e027a4cd773"},
+ {"id": "rubber/gum-rubber-natural", "name": "Gum rubber, natural", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "matte", "brown", "opaque", "apparel"], "file": "rubber/gum-rubber-natural.json", "sha256": "9ba8b5413f4604ad7e9558bf8f1d771a61cce6a14de60fdef9ab956b31c3694a"},
+ {"id": "rubber/nitrile-blue", "name": "Nitrile rubber, blue", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "matte", "blue", "opaque", "industrial"], "file": "rubber/nitrile-blue.json", "sha256": "05a9be46f2f332dbdafb9a19b86fa6ae492d4f24198e627b4753da9c85c02983"},
+ {"id": "rubber/silicone-rubber-red", "name": "Silicone rubber, red", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "satin", "red", "subsurface", "kitchen"], "file": "rubber/silicone-rubber-red.json", "sha256": "2ae609af296b91b4f3b797916046a8753504d35863d38b9e15f4959223fb6bf9"},
+ {"id": "rubber/silicone-rubber-white", "name": "Silicone rubber, white", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "satin", "white", "subsurface", "kitchen"], "file": "rubber/silicone-rubber-white.json", "sha256": "0b96c86673b0f2573962fc18f83478635ea75edb18ab47a2e8e9408ecfc73340"},
+ {"id": "rubber/soft-touch-black", "name": "Soft-touch coating, black", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "matte", "black", "opaque", "electronics"], "file": "rubber/soft-touch-black.json", "sha256": "115d6e6bab0f84f8087dade3c07af56ddd2f0ed032bc863c7b9ec97ba49f5dd4"},
+ {"id": "rubber/tyre-rubber", "name": "Tyre rubber", "category": "Rubber", "type": "rubber", "tags": ["elastomer", "matte", "black", "opaque", "automotive"], "file": "rubber/tyre-rubber.json", "sha256": "3690d7ff5816dc5c040d26ec56c13ef48a3b701df7cdb74d89086c34db999cb4"},
+ {"id": "fabric/cotton-navy", "name": "Cotton, navy", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "blue", "apparel"], "file": "fabric/cotton-navy.json", "sha256": "bb572102a71a0f38b5f6cc9511ed2a399bcdf03333db1ca95eda353b29fcafad"},
+ {"id": "fabric/cotton-red", "name": "Cotton, red", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "red", "apparel"], "file": "fabric/cotton-red.json", "sha256": "df137464a30bbb4816592627be73659ffb85cb31f89db6eb8fbc56cd0a852ef8"},
+ {"id": "fabric/cotton-white", "name": "Cotton, white", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "white", "apparel"], "file": "fabric/cotton-white.json", "sha256": "d2caaa1dff7750de0f4cd4a24d616c2b6d1e3584c20f7a6ada4784ed433b8902"},
+ {"id": "fabric/denim-blue", "name": "Denim, indigo", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "blue", "apparel"], "file": "fabric/denim-blue.json", "sha256": "39548cac6e912a6bc8b49dccfaa32d3acb3d0a7f9c439dc77514be3270c5256c"},
+ {"id": "fabric/felt-charcoal", "name": "Felt, charcoal", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "grey", "apparel"], "file": "fabric/felt-charcoal.json", "sha256": "3196022b46798182706e3a77b7206087a7e4381b6f6852af20724d554905e52d"},
+ {"id": "fabric/linen-natural", "name": "Linen, natural", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "brown", "apparel"], "file": "fabric/linen-natural.json", "sha256": "7f7cf0db2f51d9ea819642a6f0a11045c7c3d38f17c199b160bf1789605defa7"},
+ {"id": "fabric/polyester-black", "name": "Polyester, black", "category": "Fabric", "type": "fabric", "tags": ["synthetic-fibre", "fuzz", "matte", "black", "apparel"], "file": "fabric/polyester-black.json", "sha256": "df408732c7bddde9e12fcdfecf883e281a5304d8c5564598a0cc73bb9fe80401"},
+ {"id": "fabric/polyester-grey", "name": "Polyester, grey", "category": "Fabric", "type": "fabric", "tags": ["synthetic-fibre", "fuzz", "matte", "grey", "apparel"], "file": "fabric/polyester-grey.json", "sha256": "8087f505e16b83dbffe9acb5952aa5618c9d98de1c58b50a28038f52b0e0e030"},
+ {"id": "fabric/silk-ivory", "name": "Silk, ivory", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "satin", "anisotropic", "white", "apparel"], "file": "fabric/silk-ivory.json", "sha256": "1e6260dec76b10961565dbc661e96ed339993a59ab4f06573b1e4bfffa47abad"},
+ {"id": "fabric/velvet-black", "name": "Velvet, black", "category": "Fabric", "type": "fabric", "tags": ["synthetic-fibre", "fuzz", "matte", "black", "furniture"], "file": "fabric/velvet-black.json", "sha256": "d0cd41bd9b09d97ad7f4b46a2a45163087afc0867d62c855a03dad3e29b075d7"},
+ {"id": "fabric/velvet-burgundy", "name": "Velvet, burgundy", "category": "Fabric", "type": "fabric", "tags": ["synthetic-fibre", "fuzz", "matte", "red", "furniture"], "file": "fabric/velvet-burgundy.json", "sha256": "ecd3af61748c656cabf98483ac3d7de303e7a406cab19c8774dd7e91fdc04086"},
+ {"id": "fabric/wool-camel", "name": "Wool, camel", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "brown", "apparel"], "file": "fabric/wool-camel.json", "sha256": "fac618974c9926d232d6d389198947886aaca388466a618d6877729cc5f71642"},
+ {"id": "fabric/wool-grey", "name": "Wool, grey", "category": "Fabric", "type": "fabric", "tags": ["natural-fibre", "fuzz", "matte", "grey", "apparel"], "file": "fabric/wool-grey.json", "sha256": "3a788e8c274ceb537501fcd22f4d748536774783467c02ebaf3930fa8f36c714"},
+ {"id": "wood/ash-oiled", "name": "Ash, oiled", "category": "Wood", "type": "wood", "tags": ["wood", "satin", "brown", "needs-graph", "furniture"], "file": "wood/ash-oiled.json", "sha256": "e9496d61be7a1c8422aa9b14d49db523c100cb1424486b57e0d6bb4a10c4360d"},
+ {"id": "wood/cherry-oiled", "name": "Cherry, oiled", "category": "Wood", "type": "wood", "tags": ["wood", "satin", "red", "needs-graph", "furniture"], "file": "wood/cherry-oiled.json", "sha256": "7497998ac807953e0418069caebb174b6f110b6c5ef6e950535cf31c071940bf"},
+ {"id": "wood/ebony-polished", "name": "Ebony, polished", "category": "Wood", "type": "wood", "tags": ["wood", "gloss", "black", "needs-graph", "furniture", "coat"], "file": "wood/ebony-polished.json", "sha256": "50c69af92af19f2e6911cb3c7b1f0f847c946e78c489f6f6dfe286b3cea05898"},
+ {"id": "wood/maple-lacquered", "name": "Maple, lacquered", "category": "Wood", "type": "wood", "tags": ["wood", "gloss", "yellow", "needs-graph", "furniture", "coat"], "file": "wood/maple-lacquered.json", "sha256": "5ca75fd20a85eecd248e31384f03968b84a3a2f080eec2bd7cd40761b3a4d884"},
+ {"id": "wood/oak-lacquered", "name": "Oak, lacquered", "category": "Wood", "type": "wood", "tags": ["wood", "gloss", "brown", "needs-graph", "furniture", "coat"], "file": "wood/oak-lacquered.json", "sha256": "e5c10b31e3204f0b45da2d6fb63c12f861021e4b74131e60a9947628a2c1f424"},
+ {"id": "wood/oak-oiled", "name": "Oak, oiled", "category": "Wood", "type": "wood", "tags": ["wood", "satin", "brown", "needs-graph", "furniture"], "file": "wood/oak-oiled.json", "sha256": "7d04f2d8ebe0f75ed54060ef5ce4801710405eabf6840264f7e595a8136b65f7"},
+ {"id": "wood/pine-raw", "name": "Pine, raw", "category": "Wood", "type": "wood", "tags": ["wood", "matte", "yellow", "needs-graph", "furniture"], "file": "wood/pine-raw.json", "sha256": "d29bab325b9bc13d61e83ba0f08a3019750cfe53ed246458dbff510b8fae56f3"},
+ {"id": "wood/teak-oiled", "name": "Teak, oiled", "category": "Wood", "type": "wood", "tags": ["wood", "satin", "brown", "needs-graph", "furniture"], "file": "wood/teak-oiled.json", "sha256": "0386c4472db41a7d87c6fd31ba6e4f89e1072c9ef812d6cc8e544d49d7b7ae11"},
+ {"id": "wood/walnut-lacquered", "name": "Walnut, lacquered", "category": "Wood", "type": "wood", "tags": ["wood", "gloss", "brown", "needs-graph", "furniture", "coat"], "file": "wood/walnut-lacquered.json", "sha256": "1afdaf72df5f1e12359d15a86fe77b8d0e42df3a6c1a4ee46ea5539e4b8e7432"},
+ {"id": "wood/walnut-oiled", "name": "Walnut, oiled", "category": "Wood", "type": "wood", "tags": ["wood", "satin", "brown", "needs-graph", "furniture"], "file": "wood/walnut-oiled.json", "sha256": "01f188938a2c3eb4a98bd483a89d0e439b34f0c5b1ed25f272b7bb1dd2a09199"},
+ {"id": "stone/concrete", "name": "Concrete, smooth", "category": "Stone", "type": "stone", "tags": ["stone", "matte", "grey", "needs-graph", "architectural"], "file": "stone/concrete.json", "sha256": "feacea5b86844001119c6d98aea44f3f7172e1fa112f134516c6adf08163ca9b"},
+ {"id": "stone/granite-black-polished", "name": "Granite, black polished", "category": "Stone", "type": "stone", "tags": ["stone", "polished", "black", "needs-graph", "architectural"], "file": "stone/granite-black-polished.json", "sha256": "3f80626f5b1a49c45df16c9e0e3a43c2abbca0e8213f1c73f56ecdedf53d3d56"},
+ {"id": "stone/granite-grey-honed", "name": "Granite, grey honed", "category": "Stone", "type": "stone", "tags": ["stone", "satin", "grey", "needs-graph", "architectural"], "file": "stone/granite-grey-honed.json", "sha256": "0f86dd653488f33c28bc781e4a0909ff52fe9a7675095c4c4805a658e629d777"},
+ {"id": "stone/limestone", "name": "Limestone, sawn", "category": "Stone", "type": "stone", "tags": ["stone", "matte", "white", "needs-graph", "architectural"], "file": "stone/limestone.json", "sha256": "e73277652fce9c4aef6810ff1bb404a625d8c01ffd966804cc16e82ab3345c5d"},
+ {"id": "stone/marble-black-polished", "name": "Marble, black polished", "category": "Stone", "type": "stone", "tags": ["stone", "polished", "black", "needs-graph", "architectural"], "file": "stone/marble-black-polished.json", "sha256": "7ce8d47a5177d89a72f43fa871051d3b3e5649b2256a57269e0092326942bf5d"},
+ {"id": "stone/marble-white-honed", "name": "Marble, white honed", "category": "Stone", "type": "stone", "tags": ["stone", "satin", "white", "subsurface", "needs-graph", "architectural"], "file": "stone/marble-white-honed.json", "sha256": "7c22da53ec0ba4f6529468cde4fc6de72fddb4bc505466374911fe8dbcdee7d5"},
+ {"id": "stone/marble-white-polished", "name": "Marble, white polished", "category": "Stone", "type": "stone", "tags": ["stone", "polished", "white", "subsurface", "needs-graph", "architectural"], "file": "stone/marble-white-polished.json", "sha256": "80e2498c82e8bd3ec345d48e29d6c8b4409978c19b5b902e42a851d0c804fd07"},
+ {"id": "stone/sandstone", "name": "Sandstone, sawn", "category": "Stone", "type": "stone", "tags": ["stone", "matte", "brown", "needs-graph", "architectural"], "file": "stone/sandstone.json", "sha256": "1c9759f7230134335eb070b9e96c8a4dfdf801f574e355fc134f9b6a1582c80c"},
+ {"id": "stone/slate", "name": "Slate, riven", "category": "Stone", "type": "stone", "tags": ["stone", "matte", "grey", "needs-graph", "architectural"], "file": "stone/slate.json", "sha256": "14c954be6812b0f64e07432372ad49f05d650225fbd1c5dd14c5f4b75650eab9"},
+ {"id": "stone/travertine-honed", "name": "Travertine, honed", "category": "Stone", "type": "stone", "tags": ["stone", "satin", "brown", "needs-graph", "architectural"], "file": "stone/travertine-honed.json", "sha256": "df637c1208687cc73e4f9c91e279f077d9fa6d6a7e5aedcb6ea9d2abd42ada89"},
+ {"id": "ceramic/alumina-technical", "name": "Alumina ceramic, technical", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "satin", "white", "opaque", "industrial"], "file": "ceramic/alumina-technical.json", "sha256": "1f9bd95a209d968d8bc7c72bfcd0a2e5f4ff35fcd2defc58f85fb000d9bca4c0"},
+ {"id": "ceramic/bisque-white-unglazed", "name": "Bisque, unglazed white", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "matte", "white", "opaque", "tableware"], "file": "ceramic/bisque-white-unglazed.json", "sha256": "a9c6ecaabb8e8215e3fd6123bee9c530469bfd2ad4b22cb4317a7a7356aad46d"},
+ {"id": "ceramic/glazed-black", "name": "Glazed ceramic, black", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "gloss", "coat", "black", "opaque", "tableware"], "file": "ceramic/glazed-black.json", "sha256": "2a3e5c33ea3ecf36a86362452cae197f1dddd251054da8be6857d649e74998d8"},
+ {"id": "ceramic/glazed-celadon", "name": "Glazed ceramic, celadon", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "gloss", "coat", "green", "opaque", "tableware"], "file": "ceramic/glazed-celadon.json", "sha256": "5c9d2669ba87f1113fea7d5368fcbea4c48c9d7590ed28280c90a3a04875c405"},
+ {"id": "ceramic/glazed-cobalt-blue", "name": "Glazed ceramic, cobalt blue", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "gloss", "coat", "blue", "opaque", "tableware"], "file": "ceramic/glazed-cobalt-blue.json", "sha256": "ff94ebe40b4ee27ea9a5edc9d27bbf55281adcb06b414e2ae848b1139bc1809b"},
+ {"id": "ceramic/glazed-white", "name": "Glazed ceramic, white", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "gloss", "coat", "white", "opaque", "tableware"], "file": "ceramic/glazed-white.json", "sha256": "48f33659c08505c5384abb9a65424c05ceebd7daa071f5c071aad6057eafac85"},
+ {"id": "ceramic/glazed-tile-white", "name": "Glazed tile, white", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "gloss", "coat", "white", "opaque", "architectural"], "file": "ceramic/glazed-tile-white.json", "sha256": "a7225d5efde799356f3b00126823d5ada67f69c47e2f6a9ce1f8fe1fc333045f"},
+ {"id": "ceramic/porcelain-glazed", "name": "Porcelain, glazed", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "gloss", "coat", "subsurface", "white", "tableware"], "file": "ceramic/porcelain-glazed.json", "sha256": "2d57ed2a847b184c2722d3b8405ab42e49655ef39d28ce810d249ab5920270cf"},
+ {"id": "ceramic/stoneware-matte-glaze", "name": "Stoneware, matte glaze", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "matte", "coat", "grey", "opaque", "tableware"], "file": "ceramic/stoneware-matte-glaze.json", "sha256": "212fd0b7fc896ec04c1f50165ccd5b6c8504c8e8b86c265c69215def90e9548b"},
+ {"id": "ceramic/terracotta-unglazed", "name": "Terracotta, unglazed", "category": "Ceramic", "type": "ceramic", "tags": ["ceramic", "matte", "orange", "opaque", "architectural"], "file": "ceramic/terracotta-unglazed.json", "sha256": "1c6b132ec4eab7e8a3e107e3e178bd8f563ddb3d10fbae6c5eb575c76862ee2e"},
+ {"id": "liquid/apple-juice", "name": "Apple juice, clear", "category": "Liquid", "type": "liquid", "tags": ["beverage", "transparent", "tinted", "orange", "kitchen"], "file": "liquid/apple-juice.json", "sha256": "8630409c49f91b427600d6c39e473c24f24ce6ab067206af21760e5aebcc42a1"},
+ {"id": "liquid/beer-lager", "name": "Beer, lager", "category": "Liquid", "type": "liquid", "tags": ["transparent", "tinted", "gold", "beverage"], "file": "liquid/beer-lager.json", "sha256": "e2408e561b7ab89c4f72e5be2ab9d30afc6c1d3a1582437bd7111f4e9bf9fb42"},
+ {"id": "liquid/coffee-black", "name": "Coffee, black", "category": "Liquid", "type": "liquid", "tags": ["transparent", "tinted", "brown", "beverage"], "file": "liquid/coffee-black.json", "sha256": "4b05e9b149de894812a557ce83660b1c7ad52474c48614ab9a4ab289b054b720"},
+ {"id": "liquid/cola", "name": "Cola", "category": "Liquid", "type": "liquid", "tags": ["beverage", "transparent", "tinted", "brown", "kitchen"], "file": "liquid/cola.json", "sha256": "e835bba437d1745fed25b515c92b6ba30a48c358490e18ef60748a1ddd7918b6"},
+ {"id": "liquid/ethanol", "name": "Ethanol", "category": "Liquid", "type": "liquid", "tags": ["transparent", "clear"], "file": "liquid/ethanol.json", "sha256": "fa76e240cf86133aa7e5830b14f90a3de486c809939655a5c856741e43677c17"},
+ {"id": "liquid/glycerol", "name": "Glycerol", "category": "Liquid", "type": "liquid", "tags": ["transparent", "clear"], "file": "liquid/glycerol.json", "sha256": "4309d7465da2dd8dc0870f257976aa1eb5501b0fe16e67f8875fb3241a9de7be"},
+ {"id": "liquid/honey", "name": "Honey", "category": "Liquid", "type": "liquid", "tags": ["food", "transparent", "tinted", "orange", "kitchen"], "file": "liquid/honey.json", "sha256": "e817ee53f8cd5085146b535f323903a69a98a139c5b5b71e3fc451839c3dc0de"},
+ {"id": "liquid/maple-syrup", "name": "Maple syrup", "category": "Liquid", "type": "liquid", "tags": ["food", "transparent", "tinted", "brown", "kitchen"], "file": "liquid/maple-syrup.json", "sha256": "8495455bce6f2328302a65a745e0f85456bd637a45f863203b3ebf695af6176f"},
+ {"id": "liquid/milk", "name": "Milk", "category": "Liquid", "type": "liquid", "tags": ["beverage", "food", "subsurface", "translucent", "white"], "file": "liquid/milk.json", "sha256": "ec0da264af5b0ee55ce7e1b44ed88ca1d8015e675d5bc81eb64992763c152e58"},
+ {"id": "liquid/motor-oil", "name": "Motor oil", "category": "Liquid", "type": "liquid", "tags": ["transparent", "tinted", "orange", "oil", "industrial"], "file": "liquid/motor-oil.json", "sha256": "7e777178375ef0a7f9838f5d2870312d6837bdb4b12cc8e474930a75ca4a326a"},
+ {"id": "liquid/olive-oil", "name": "Olive oil", "category": "Liquid", "type": "liquid", "tags": ["oil", "food", "transparent", "tinted", "yellow", "kitchen"], "file": "liquid/olive-oil.json", "sha256": "f09cf0febc9b99db12d110b2c0eaf4f3ab99a3dba0ca9877f83b038d8b9aa172"},
+ {"id": "liquid/orange-juice", "name": "Orange juice", "category": "Liquid", "type": "liquid", "tags": ["beverage", "food", "subsurface", "translucent", "orange"], "file": "liquid/orange-juice.json", "sha256": "3b8ee25460a0131b195bd05ea5539faf5f8b151e9a3accef681f1e6034895c3f"},
+ {"id": "liquid/red-wine", "name": "Red wine", "category": "Liquid", "type": "liquid", "tags": ["transparent", "tinted", "red", "beverage"], "file": "liquid/red-wine.json", "sha256": "a88e662df285590a84d8db89fdba1e3b30eb0df0eead74671194bcd34109ae07"},
+ {"id": "liquid/tea", "name": "Tea", "category": "Liquid", "type": "liquid", "tags": ["transparent", "tinted", "brown", "beverage"], "file": "liquid/tea.json", "sha256": "d31d936ef165ba5d4c73180a821cc47a56b7437eaf31ce361a49b96b2ce9f4b2"},
+ {"id": "liquid/vegetable-oil", "name": "Vegetable oil, light", "category": "Liquid", "type": "liquid", "tags": ["oil", "food", "transparent", "tinted", "yellow", "kitchen"], "file": "liquid/vegetable-oil.json", "sha256": "94693ce1986f622fb862de2e2716c3aa62bc4e2ce5503609a11e16dfcb5988ca"},
+ {"id": "liquid/water", "name": "Water", "category": "Liquid", "type": "liquid", "tags": ["water", "transparent", "clear", "beverage"], "file": "liquid/water.json", "sha256": "847f47e26168952709c358d42c1e9e15309bcef19583ce33f6b9a5027cab2119"},
+ {"id": "liquid/white-wine", "name": "White wine", "category": "Liquid", "type": "liquid", "tags": ["transparent", "tinted", "yellow", "beverage"], "file": "liquid/white-wine.json", "sha256": "7dc1a398878696716a8fde34d25560d8e863a9db7250ee21d61f1aa23b5bf600"},
+ {"id": "gem/amethyst", "name": "Amethyst", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "purple", "tinted", "jewellery"], "file": "gem/amethyst.json", "sha256": "da291f5ca5c06caef9505922138f27e5e500a648aff3e9ebc2b29fe2c298cd5d"},
+ {"id": "gem/aquamarine", "name": "Aquamarine", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "blue", "tinted", "jewellery"], "file": "gem/aquamarine.json", "sha256": "2a4a5d97119bd47fb41fc79b0348ca76a42a05cb7f79695e6e47c338ad88e0ee"},
+ {"id": "gem/chrysoberyl", "name": "Chrysoberyl", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "yellow", "tinted", "jewellery"], "file": "gem/chrysoberyl.json", "sha256": "ac64f658588af4539acff998842e094892b1dbafcfe3a79b074ba8dd6f9bfa85"},
+ {"id": "gem/citrine", "name": "Citrine", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "yellow", "tinted", "jewellery"], "file": "gem/citrine.json", "sha256": "17f0fb5ed1a8ce7adc479bd0a6f3a63abefc169265ab98711428dbda579d3e44"},
+ {"id": "gem/cubic-zirconia", "name": "Cubic zirconia", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery", "synthetic"], "file": "gem/cubic-zirconia.json", "sha256": "5ecf2429f24db5e8e7f56a93cba3918358fe9d9bbff8fff799d3d92710084ee5"},
+ {"id": "gem/diamond", "name": "Diamond", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery"], "file": "gem/diamond.json", "sha256": "8836774a0905122b63bb2fa2b2e2dcd79dc22e5212f748bcdcbec835477501d6"},
+ {"id": "gem/emerald", "name": "Emerald", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "green", "tinted", "jewellery"], "file": "gem/emerald.json", "sha256": "9634d6833d996627eeab60f5b8340c1c24598692a7bfdcf6094518bc5476f1f5"},
+ {"id": "gem/fluorite-purple", "name": "Fluorite, purple", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "purple", "tinted", "mineral"], "file": "gem/fluorite-purple.json", "sha256": "1bfd1d92f7c578434d7110382fb82c1f727174027700d1c4d0c6f80dd940a7fe"},
+ {"id": "gem/garnet-almandine", "name": "Garnet, almandine", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "red", "tinted", "jewellery"], "file": "gem/garnet-almandine.json", "sha256": "9d4b26f808967fe1048c2d43796b2e75c308c924523316e423cea720828a5d2f"},
+ {"id": "gem/moissanite", "name": "Moissanite", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery", "synthetic"], "file": "gem/moissanite.json", "sha256": "479cf259ad0b497ac12da8c123f859267cb263b8a3f7061d2899ca26e0bc512e"},
+ {"id": "gem/peridot", "name": "Peridot", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "green", "tinted", "jewellery"], "file": "gem/peridot.json", "sha256": "e8fbb0dd44e7603cf99329a8be2bdbafd1d66f7598ffb56de5a055fd2f82f296"},
+ {"id": "gem/rock-crystal", "name": "Quartz, rock crystal", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "mineral"], "file": "gem/rock-crystal.json", "sha256": "7010dbd11a905b52baf774e0988827d7feceea2a105548cbd98b0a862aa69959"},
+ {"id": "gem/smoky-quartz", "name": "Quartz, smoky", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "brown", "tinted", "mineral"], "file": "gem/smoky-quartz.json", "sha256": "a3ae97d64a0dfd01ec0c415eb4fdc65be406e86ebca6bcaa553125ea8fe7c581"},
+ {"id": "gem/ruby", "name": "Ruby", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "red", "tinted", "jewellery"], "file": "gem/ruby.json", "sha256": "28018171b7ba83e880a6f61c432f52ead70137c4d2ec44d73ebe064926160e2b"},
+ {"id": "gem/sapphire-blue", "name": "Sapphire, blue", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "blue", "tinted", "jewellery"], "file": "gem/sapphire-blue.json", "sha256": "7e94d8143dcbef9e22a4e533b0d7b1f1566f6024676da47e57b502a53dcf7ccf"},
+ {"id": "gem/white-sapphire", "name": "Sapphire, colourless", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery"], "file": "gem/white-sapphire.json", "sha256": "8fc99ba64d9d031b285289096b06785e51074a3b6dbb5ff12e7bca25384b7aff"},
+ {"id": "gem/spinel-red", "name": "Spinel, red", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "red", "tinted", "jewellery"], "file": "gem/spinel-red.json", "sha256": "9d34550f1ff16a906b562cb1eaac2c758801c05d5d6e8bcb2e95368ea0305bf5"},
+ {"id": "gem/topaz-blue", "name": "Topaz, blue", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "blue", "tinted", "jewellery"], "file": "gem/topaz-blue.json", "sha256": "91981c5c043aeb9e490f83729e5e3794f32b7ddba0a3ee5659a304a130c5cecf"},
+ {"id": "gem/tourmaline-green", "name": "Tourmaline, green", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "green", "tinted", "jewellery"], "file": "gem/tourmaline-green.json", "sha256": "54ae3fc276f51c191b4109f30d55cbfec5cb32b3ff965270d8af61675448116e"},
+ {"id": "gem/tourmaline-pink", "name": "Tourmaline, pink", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "pink", "tinted", "jewellery"], "file": "gem/tourmaline-pink.json", "sha256": "b95f2947e8b81894293b2ff8fd6e937de2aad7cb2ea85d4709814bf0a61d30ec"},
+ {"id": "gem/yag", "name": "YAG, colourless", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "optics", "synthetic"], "file": "gem/yag.json", "sha256": "002bb08504366b2db7ba4810439876e342e2f8502a6651a1b57e398b7c0c77cf"},
+ {"id": "gem/zircon", "name": "Zircon, colourless", "category": "Gem", "type": "gem", "tags": ["crystal", "transparent", "dispersion", "clear", "jewellery"], "file": "gem/zircon.json", "sha256": "35716c19b1d8c9b6dc2361d6d4f4d16b711b76782db79c948c76c9dd2ae1e2e3"},
+ {"id": "emissive/display-white-srgb", "name": "Display white, sRGB reference", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "display", "white", "electronics"], "file": "emissive/display-white-srgb.json", "sha256": "ce60fdd12d195b43ee2b7ddf5a5848299d082ea397ba051855722c4ec15275f4"},
+ {"id": "emissive/electroluminescent-green", "name": "Electroluminescent panel, green", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "green", "display"], "file": "emissive/electroluminescent-green.json", "sha256": "6821292fc731da73bdcddb03210411ff3011bc4893dd668ae23f6ab84873ae85"},
+ {"id": "emissive/fluorescent-tube-4000k", "name": "Fluorescent tube, 4000 K", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "white", "lighting"], "file": "emissive/fluorescent-tube-4000k.json", "sha256": "4c0c992723757a6e3f2aa748747ddc131639f08c803f438e26df69c428f38aa6"},
+ {"id": "emissive/hdr-display-peak", "name": "HDR display, peak white", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "display", "white", "electronics"], "file": "emissive/hdr-display-peak.json", "sha256": "0ea75be8cd983d44478934879b822afd730f06f30fd85e02321b5c538e51793c"},
+ {"id": "emissive/incandescent-frosted-2700k", "name": "Incandescent bulb, frosted", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "orange", "lighting"], "file": "emissive/incandescent-frosted-2700k.json", "sha256": "cf471630c28c4ce332be7acfd414d34d78eafd7499d3d6d8210ae5075576bfcc"},
+ {"id": "emissive/indicator-led-red", "name": "Indicator LED, red", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "red", "electronics"], "file": "emissive/indicator-led-red.json", "sha256": "2f2111d92eb738021c1de7a09448ded7a5d3ddcac17011edfaf77511195e8bc1"},
+ {"id": "emissive/monitor-white-lcd", "name": "LCD monitor, white", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "display", "white", "electronics"], "file": "emissive/monitor-white-lcd.json", "sha256": "223ebb08068a406b9ddda7a7027b949a24cdbb67f854676c096901697cbcddc5"},
+ {"id": "emissive/light-box-6500k", "name": "Light box, daylight", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "white", "lighting"], "file": "emissive/light-box-6500k.json", "sha256": "69cc4c7c0985be5a2dcd52d4983ffd5b4cd7cf9979425a3955537c036b3acdf0"},
+ {"id": "emissive/sodium-lamp-low-pressure", "name": "Sodium lamp, low pressure", "category": "Emissive", "type": "emissive", "tags": ["light-source", "emissive", "orange", "lighting"], "file": "emissive/sodium-lamp-low-pressure.json", "sha256": "9ee60465bf69a8db46c1d30c0d402ae7c53c8ce05869c338bbc908e2d567ac76"}
+ ]
+}
diff --git a/assets/library/materials/liquid/apple-juice.json b/assets/library/materials/liquid/apple-juice.json
new file mode 100644
index 00000000..d06b08e5
--- /dev/null
+++ b/assets/library/materials/liquid/apple-juice.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/apple-juice",
+ "name": "Apple juice, clear",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.3506,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.5318, 0.3446, 0.0697],
+ "transmission_depth": 0.05
+ },
+ "tags": ["beverage", "transparent", "tinted", "orange", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "USDA AMS, Sucrose Conversion Table, SCI Division Technical Procedures Manual, Appendix XV (refractive index of sucrose solutions at 20 C, ICUMSA basis)",
+ "urls": ["https://www.ams.usda.gov/sites/default/files/media/SucroseConversionTableXV.pdf"],
+ "notes": "Clear apple juice is about 11 to 12 degrees Brix; specular_ior 1.3506 is the tabulated index of a 11.8 degree Brix sucrose solution at 20 C (the Brix level is authored). transmission_color authored as sRGB #d89a2a, the colour through a glass's width of 5 cm.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/beer-lager.json b/assets/library/materials/liquid/beer-lager.json
new file mode 100644
index 00000000..a8e9e489
--- /dev/null
+++ b/assets/library/materials/liquid/beer-lager.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/beer-lager",
+ "name": "Beer, lager",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.341,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.5139, 0.3425, 0.0591],
+ "transmission_depth": 0.05
+ },
+ "tags": ["transparent", "tinted", "gold", "beverage"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Lager at about 5 percent ethanol and 3 to 4 degrees of residual extract: index 1.341 authored. transmission_color authored as sRGB #d49a1c, the colour through transmission_depth 0.05 m. Smooth free surface (roughness 0).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/coffee-black.json b/assets/library/materials/liquid/coffee-black.json
new file mode 100644
index 00000000..486050af
--- /dev/null
+++ b/assets/library/materials/liquid/coffee-black.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/coffee-black",
+ "name": "Coffee, black",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.335,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.0167, 0.0081, 0.0034],
+ "transmission_depth": 0.005
+ },
+ "tags": ["transparent", "tinted", "brown", "beverage"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Brewed coffee is about 1.5 percent dissolved solids: index 1.335 authored just above water. transmission_color authored as sRGB #2a1408, the colour through transmission_depth 0.005 m. Smooth free surface (roughness 0).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/cola.json b/assets/library/materials/liquid/cola.json
new file mode 100644
index 00000000..14bd7b25
--- /dev/null
+++ b/assets/library/materials/liquid/cola.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/cola",
+ "name": "Cola",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.3487,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.0296, 0.0125, 0.0046],
+ "transmission_depth": 0.02
+ },
+ "tags": ["beverage", "transparent", "tinted", "brown", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "USDA AMS, Sucrose Conversion Table, SCI Division Technical Procedures Manual, Appendix XV (refractive index of sucrose solutions at 20 C, ICUMSA basis)",
+ "urls": ["https://www.ams.usda.gov/sites/default/files/media/SucroseConversionTableXV.pdf"],
+ "notes": "Cola carries about 10.6 g of sugar per 100 g; specular_ior 1.3487 is the tabulated index of a 10.6 degree Brix sucrose solution at 20 C (the Brix level is authored). transmission_color authored as sRGB #3a1a0a, the colour through 2 cm.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/ethanol.json b/assets/library/materials/liquid/ethanol.json
new file mode 100644
index 00000000..ac72c96f
--- /dev/null
+++ b/assets/library/materials/liquid/ethanol.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/ethanol",
+ "name": "Ethanol",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.3617,
+ "transmission_weight": 1.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 59.4
+ },
+ "tags": ["transparent", "clear"],
+ "source": {
+ "kind": "measured",
+ "reference": "J. Rheims, J Köser, T Wriedt. Refractive-index measurements in the near-IR using an Abbe refractometer. Meas. Sci. Technol. 8, 601-605 (1997); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/C2H6O%20-%20ethanol/nk/Rheims.yml"],
+ "notes": "Clear spirit base (pure ethanol). specular_ior 1.3617 and Abbe number 59.4 from measured n; absorption negligible at product scale.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/glycerol.json b/assets/library/materials/liquid/glycerol.json
new file mode 100644
index 00000000..a93bdc62
--- /dev/null
+++ b/assets/library/materials/liquid/glycerol.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/glycerol",
+ "name": "Glycerol",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4713,
+ "transmission_weight": 1.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 64.4
+ },
+ "tags": ["transparent", "clear"],
+ "source": {
+ "kind": "measured",
+ "reference": "V. Gupta, O. Aftenieva, P. T. Probst, S. Sarkar, A. M. Steiner, N. Vogel, A. Fery, T. A. F. König. Advanced colloidal sensors enabled by an out-of-plane lattice resonance. Adv. Photonics Res. 2022, 2200152 (see supporting information); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/C3H8O3%20-%20glycerol/nk/Gupta.yml"],
+ "notes": "Clear viscous glycerol. specular_ior 1.4713 and Abbe number 64.4 from measured n; absorption negligible at product scale.",
+ "authored": []
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/honey.json b/assets/library/materials/liquid/honey.json
new file mode 100644
index 00000000..dd2e9c8c
--- /dev/null
+++ b/assets/library/materials/liquid/honey.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/honey",
+ "name": "Honey",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.4447, 0.274, 0.0451],
+ "transmission_depth": 0.02
+ },
+ "tags": ["food", "transparent", "tinted", "orange", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "USDA AMS, Sucrose Conversion Table, SCI Division Technical Procedures Manual, Appendix XV (refractive index of sucrose solutions at 20 C, ICUMSA basis)",
+ "urls": ["https://www.ams.usda.gov/sites/default/files/media/SucroseConversionTableXV.pdf"],
+ "notes": "Honey is about 80 degrees Brix (17 to 20 percent water); specular_ior 1.4906 is the tabulated index of a 80.0 degree Brix sucrose solution at 20 C (the Brix level is authored). transmission_color authored as sRGB #c98a12, the colour through a jar's depth of 2 cm.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/maple-syrup.json b/assets/library/materials/liquid/maple-syrup.json
new file mode 100644
index 00000000..a46b7fe2
--- /dev/null
+++ b/assets/library/materials/liquid/maple-syrup.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/maple-syrup",
+ "name": "Maple syrup",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4558,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.2243, 0.0926, 0.0203],
+ "transmission_depth": 0.02
+ },
+ "tags": ["food", "transparent", "tinted", "brown", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "USDA AMS, Sucrose Conversion Table, SCI Division Technical Procedures Manual, Appendix XV (refractive index of sucrose solutions at 20 C, ICUMSA basis)",
+ "urls": ["https://www.ams.usda.gov/sites/default/files/media/SucroseConversionTableXV.pdf"],
+ "notes": "Maple syrup is standardised at about 66 degrees Brix; specular_ior 1.4558 is the tabulated index of a 66.0 degree Brix sucrose solution at 20 C (the Brix level is authored). transmission_color authored as sRGB #9a4e12, the colour through 2 cm.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/milk.json b/assets/library/materials/liquid/milk.json
new file mode 100644
index 00000000..3cccf632
--- /dev/null
+++ b/assets/library/materials/liquid/milk.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/milk",
+ "name": "Milk",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [0.9127, 0.9052, 0.8618],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.347,
+ "transmission_weight": 0.0,
+ "subsurface_weight": 1.0,
+ "subsurface_color": [0.9127, 0.9052, 0.8618],
+ "subsurface_radius": 0.0005,
+ "subsurface_radius_scale": [1.0, 0.9, 0.75]
+ },
+ "tags": ["beverage", "food", "subsurface", "translucent", "white"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Whole milk: fat globules and casein micelles scatter strongly, so it is modelled with subsurface (transmission off); mean free path 0.5 mm, shorter in blue, authored. Index 1.347 authored within the published 1.344 to 1.349 of milk at 20 C.",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "subsurface_color", "subsurface_radius", "subsurface_radius_scale"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/motor-oil.json b/assets/library/materials/liquid/motor-oil.json
new file mode 100644
index 00000000..e094167e
--- /dev/null
+++ b/assets/library/materials/liquid/motor-oil.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/motor-oil",
+ "name": "Motor oil",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.48,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.2956, 0.1761, 0.0348],
+ "transmission_depth": 0.02
+ },
+ "tags": ["transparent", "tinted", "orange", "oil", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Mineral base oil: index 1.48 authored, typical of paraffinic lubricating oils. transmission_color authored as sRGB #a8701a, the colour through transmission_depth 0.02 m. Smooth free surface (roughness 0).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/olive-oil.json b/assets/library/materials/liquid/olive-oil.json
new file mode 100644
index 00000000..b0ebe08a
--- /dev/null
+++ b/assets/library/materials/liquid/olive-oil.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/olive-oil",
+ "name": "Olive oil",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4695,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.4424, 0.4318, 0.0776],
+ "transmission_depth": 0.05
+ },
+ "tags": ["oil", "food", "transparent", "tinted", "yellow", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "S. H. Jones, M. D. King, A. D. Ward. Atmospherically relevant core-shell aerosol studied using optical trapping and Mie scattering. Chem. Commun. 51, 4914-4917 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/C18H34O2%20-%20oleic%20acid/nk/Jones.yml"],
+ "notes": "specular_ior 1.4695 is the measured n of oleic acid at 587.6 nm; vegetable oils are mostly oleic and linoleic triglycerides and their standard index range (olive oil 1.4677 to 1.4705) contains it. transmission_color authored as sRGB #b8b02a, the oil's colour through 0.05 m, a bottle's width.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/orange-juice.json b/assets/library/materials/liquid/orange-juice.json
new file mode 100644
index 00000000..1697439d
--- /dev/null
+++ b/assets/library/materials/liquid/orange-juice.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/orange-juice",
+ "name": "Orange juice",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [0.6597, 0.3592, 0.0629],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.3506,
+ "transmission_weight": 0.0,
+ "subsurface_weight": 1.0,
+ "subsurface_color": [0.6597, 0.3592, 0.0629],
+ "subsurface_radius": 0.002,
+ "subsurface_radius_scale": [1.0, 0.7, 0.4]
+ },
+ "tags": ["beverage", "food", "subsurface", "translucent", "orange"],
+ "source": {
+ "kind": "published",
+ "reference": "USDA AMS, Sucrose Conversion Table, SCI Division Technical Procedures Manual, Appendix XV (refractive index of sucrose solutions at 20 C, ICUMSA basis)",
+ "urls": ["https://www.ams.usda.gov/sites/default/files/media/SucroseConversionTableXV.pdf"],
+ "notes": "Orange juice carries pulp and cloud that scatter: subsurface (transmission off), 2 mm mean free path, colour sRGB #f39a1a, authored. specular_ior is the tabulated index of an 11.8 degree Brix sucrose solution (USDA's minimum for orange juice from concentrate; the Brix level is authored).",
+ "authored": ["base_color", "subsurface_color", "subsurface_radius", "subsurface_radius_scale"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/red-wine.json b/assets/library/materials/liquid/red-wine.json
new file mode 100644
index 00000000..ce0e1e0a
--- /dev/null
+++ b/assets/library/materials/liquid/red-wine.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/red-wine",
+ "name": "Red wine",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.343,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.0642, 0.0101, 0.0114],
+ "transmission_depth": 0.01
+ },
+ "tags": ["transparent", "tinted", "red", "beverage"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "About 12 percent ethanol in water with a little residual sugar and extract: index 1.343 authored between water (1.333) and the mixture's components. transmission_color authored as sRGB #5a0a1a, the colour through transmission_depth 0.01 m. Smooth free surface (roughness 0).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/tea.json b/assets/library/materials/liquid/tea.json
new file mode 100644
index 00000000..898559d6
--- /dev/null
+++ b/assets/library/materials/liquid/tea.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/tea",
+ "name": "Tea",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.334,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.2217, 0.0855, 0.0202],
+ "transmission_depth": 0.03
+ },
+ "tags": ["transparent", "tinted", "brown", "beverage"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Brewed black tea, under 1 percent solids: index 1.334 authored just above water. transmission_color authored as sRGB #9a4a14, the colour through transmission_depth 0.03 m. Smooth free surface (roughness 0).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/vegetable-oil.json b/assets/library/materials/liquid/vegetable-oil.json
new file mode 100644
index 00000000..858c6a10
--- /dev/null
+++ b/assets/library/materials/liquid/vegetable-oil.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/vegetable-oil",
+ "name": "Vegetable oil, light",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.4695,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.7114, 0.6298, 0.1739],
+ "transmission_depth": 0.05
+ },
+ "tags": ["oil", "food", "transparent", "tinted", "yellow", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "S. H. Jones, M. D. King, A. D. Ward. Atmospherically relevant core-shell aerosol studied using optical trapping and Mie scattering. Chem. Commun. 51, 4914-4917 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/C18H34O2%20-%20oleic%20acid/nk/Jones.yml"],
+ "notes": "specular_ior 1.4695 is the measured n of oleic acid at 587.6 nm; vegetable oils are mostly oleic and linoleic triglycerides and their standard index range (olive oil 1.4677 to 1.4705) contains it. transmission_color authored as sRGB #e8cf5a, the oil's colour through 0.05 m, a bottle's width.",
+ "authored": ["transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/water.json b/assets/library/materials/liquid/water.json
new file mode 100644
index 00000000..6865e9d2
--- /dev/null
+++ b/assets/library/materials/liquid/water.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/water",
+ "name": "Water",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.3334,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.4782, 0.8, 0.8848],
+ "transmission_depth": 4.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 55.8
+ },
+ "tags": ["water", "transparent", "clear", "beverage"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. Daimon and A. Masumura. Measurement of the refractive index of distilled water from the near-infrared region to the ultraviolet region. Appl. Opt. 46, 3811-3820 (2007); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); G. M. Hale and M. R. Querry. Optical constants of water in the 200-nm to 200-µm wavelength region. Appl. Opt. 12, 555-563 (1973) See also Segelstein 1981 for more recent data from the same group.; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/H2O/nk/Daimon-20.0C.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/H2O/nk/Hale.yml"],
+ "notes": "Pure water at 20 C: specular_ior 1.3334 and Abbe number 55.8 from Daimon and Masumura's measured n. transmission_color is the Beer-Lambert transmittance of Hale and Querry's measured absorption k through transmission_depth 4 m (CIE 1931 under D65): water's own faint blue, only visible in deep volumes. The 4 m depth was chosen so the colour keeps its hue in RGB; it is the same absorption at every scale.",
+ "authored": ["transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/liquid/white-wine.json b/assets/library/materials/liquid/white-wine.json
new file mode 100644
index 00000000..1403067c
--- /dev/null
+++ b/assets/library/materials/liquid/white-wine.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "liquid/white-wine",
+ "name": "White wine",
+ "category": "Liquid",
+ "type": "liquid",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.0,
+ "specular_ior": 1.342,
+ "transmission_weight": 1.0,
+ "transmission_color": [0.7255, 0.6752, 0.3111],
+ "transmission_depth": 0.05
+ },
+ "tags": ["transparent", "tinted", "yellow", "beverage"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Dry white wine: index 1.342 authored as for red wine with less extract. transmission_color authored as sRGB #e6d68a, the colour through transmission_depth 0.05 m. Smooth free surface (roughness 0).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-black.json b/assets/library/materials/metal/aluminium-anodised-black.json
new file mode 100644
index 00000000..d5ae2bf8
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-black.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-black",
+ "name": "Aluminium, anodised black",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.007, 0.007, 0.007],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "black", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #141414, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-blue.json b/assets/library/materials/metal/aluminium-anodised-blue.json
new file mode 100644
index 00000000..1c4f423c
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-blue.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-blue",
+ "name": "Aluminium, anodised blue",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.0555, 0.0784, 0.3865],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "blue", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #1f4fb0, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-bronze.json b/assets/library/materials/metal/aluminium-anodised-bronze.json
new file mode 100644
index 00000000..7c96c13f
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-bronze.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-bronze",
+ "name": "Aluminium, anodised bronze",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.156, 0.1079, 0.052],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "brown", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #7a5a3a, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-gold.json b/assets/library/materials/metal/aluminium-anodised-gold.json
new file mode 100644
index 00000000..02909d4a
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-gold.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-gold",
+ "name": "Aluminium, anodised gold",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.5543, 0.3938, 0.0765],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "gold", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #d9a52b, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-green.json b/assets/library/materials/metal/aluminium-anodised-green.json
new file mode 100644
index 00000000..d2d0efd0
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-green.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-green",
+ "name": "Aluminium, anodised green",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.1127, 0.2543, 0.0675],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "green", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #2f8f3a, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-purple.json b/assets/library/materials/metal/aluminium-anodised-purple.json
new file mode 100644
index 00000000..81015158
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-purple.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-purple",
+ "name": "Aluminium, anodised purple",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.1127, 0.0377, 0.2949],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "purple", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #6a2c9c, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-red.json b/assets/library/materials/metal/aluminium-anodised-red.json
new file mode 100644
index 00000000..2e63add8
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-red.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-red",
+ "name": "Aluminium, anodised red",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.3292, 0.0505, 0.0326],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "red", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #c0202a, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-anodised-rose.json b/assets/library/materials/metal/aluminium-anodised-rose.json
new file mode 100644
index 00000000..0996a20f
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-anodised-rose.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-anodised-rose",
+ "name": "Aluminium, anodised rose",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "coat_weight": 1.0,
+ "coat_color": [0.4725, 0.2268, 0.242],
+ "coat_roughness": 0.15,
+ "coat_ior": 1.65
+ },
+ "tags": ["anodised", "pink", "satin", "coat", "electronics"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "Aluminium under a dyed anodic oxide layer. The metal is measured (see the polished aluminium preset). The oxide is modelled as a coat: coat_color authored as sRGB #d27a86, the dye's look over bright aluminium; coat_ior 1.65 authored, in the range of amorphous anodic alumina, below crystalline sapphire's ordinary index of 1.7682; roughness 0.3 for the etched metal and 0.15 for the sealed oxide, a typical bead-blasted and anodised product finish.",
+ "authored": ["specular_roughness", "coat_color", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-as-cast.json b/assets/library/materials/metal/aluminium-as-cast.json
new file mode 100644
index 00000000..6904479f
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-as-cast.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-as-cast",
+ "name": "Aluminium, as cast",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.55
+ },
+ "tags": ["pure-metal", "silver", "electronics", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0067 of the exact Fresnel reflectance at every angle. Roughness authored, as cast or hot rolled: coarse surface, broad highlight.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-bead-blasted.json b/assets/library/materials/metal/aluminium-bead-blasted.json
new file mode 100644
index 00000000..1f6b0533
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-bead-blasted.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-bead-blasted",
+ "name": "Aluminium, bead blasted",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.45
+ },
+ "tags": ["pure-metal", "silver", "electronics", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0067 of the exact Fresnel reflectance at every angle. Roughness authored, bead blasted: uniform micro-roughness, reflections blurred to a sheen.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-brushed.json b/assets/library/materials/metal/aluminium-brushed.json
new file mode 100644
index 00000000..1904f282
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-brushed",
+ "name": "Aluminium, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["pure-metal", "silver", "electronics", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0067 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-polished.json b/assets/library/materials/metal/aluminium-polished.json
new file mode 100644
index 00000000..46eb6f95
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-polished",
+ "name": "Aluminium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0067 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/aluminium-satin.json b/assets/library/materials/metal/aluminium-satin.json
new file mode 100644
index 00000000..c3ba4a33
--- /dev/null
+++ b/assets/library/materials/metal/aluminium-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/aluminium-satin",
+ "name": "Aluminium, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9104, 0.9156, 0.9215],
+ "base_metalness": 1.0,
+ "specular_color": [0.9009, 0.9166, 0.9429],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "silver", "electronics", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Al/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0067 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/beryllium-polished.json b/assets/library/materials/metal/beryllium-polished.json
new file mode 100644
index 00000000..f1b65b82
--- /dev/null
+++ b/assets/library/materials/metal/beryllium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/beryllium-polished",
+ "name": "Beryllium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5373, 0.5357, 0.5355],
+ "base_metalness": 1.0,
+ "specular_color": [0.7323, 0.7356, 0.752],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "A. D. Rakić, A. B. Djurišic, J. M. Elazar, M. L. Majewski. Optical properties of metallic films for vertical-cavity optoelectronic devices. Appl. Opt. 37, 5271-5283 (1998) [Calculation script (Python)]; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Be/nk/Rakic-LD.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0273 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/bismuth-polished.json b/assets/library/materials/metal/bismuth-polished.json
new file mode 100644
index 00000000..7183c223
--- /dev/null
+++ b/assets/library/materials/metal/bismuth-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/bismuth-polished",
+ "name": "Bismuth, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5471, 0.5319, 0.4915],
+ "base_metalness": 1.0,
+ "specular_color": [0.8263, 0.8447, 0.8943],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "H.-J. Hagemann, W. Gudat, C. Kunz. Optical constants from the far infrared to the x-ray region: Mg, Al, Cu, Ag, Au, Bi, C, and Al2O3. J. Opt. Soc. Am. 65, 742-744 (1975); H.-J. Hagemann, W. Gudat, and C. Kunz. DESY report SR-74/7 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Bi/nk/Hagemann.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0077 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/brass-brushed.json b/assets/library/materials/metal/brass-brushed.json
new file mode 100644
index 00000000..5ad39daf
--- /dev/null
+++ b/assets/library/materials/metal/brass-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/brass-brushed",
+ "name": "Brass, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.842, 0.7827, 0.4718],
+ "base_metalness": 1.0,
+ "specular_color": [0.9631, 0.9771, 1.0],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["alloy", "gold", "architectural", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. R. Querry. Optical constants, Contractor Report CRDC-CR-85034 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Cu-Zn/nk/Querry-Cu70Zn30.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0214 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/brass-polished.json b/assets/library/materials/metal/brass-polished.json
new file mode 100644
index 00000000..3aff3f66
--- /dev/null
+++ b/assets/library/materials/metal/brass-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/brass-polished",
+ "name": "Brass (Cu70 Zn30), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.842, 0.7827, 0.4718],
+ "base_metalness": 1.0,
+ "specular_color": [0.9631, 0.9771, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "gold", "architectural", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. R. Querry. Optical constants, Contractor Report CRDC-CR-85034 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Cu-Zn/nk/Querry-Cu70Zn30.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0214 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/brass-satin.json b/assets/library/materials/metal/brass-satin.json
new file mode 100644
index 00000000..7baf426f
--- /dev/null
+++ b/assets/library/materials/metal/brass-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/brass-satin",
+ "name": "Brass, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.842, 0.7827, 0.4718],
+ "base_metalness": 1.0,
+ "specular_color": [0.9631, 0.9771, 1.0],
+ "specular_roughness": 0.25
+ },
+ "tags": ["alloy", "gold", "architectural", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. R. Querry. Optical constants, Contractor Report CRDC-CR-85034 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Cu-Zn/nk/Querry-Cu70Zn30.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0214 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/chromium-polished.json b/assets/library/materials/metal/chromium-polished.json
new file mode 100644
index 00000000..735abec6
--- /dev/null
+++ b/assets/library/materials/metal/chromium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/chromium-polished",
+ "name": "Chromium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6457, 0.6498, 0.6538],
+ "base_metalness": 1.0,
+ "specular_color": [0.7404, 0.7584, 0.8073],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "automotive", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "A. D. Rakić, A. B. Djurišic, J. M. Elazar, M. L. Majewski. Optical properties of metallic films for vertical-cavity optoelectronic devices. Appl. Opt. 37, 5271-5283 (1998) [Calculation script (Python)]; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cr/nk/Rakic-LD.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0273 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/chromium-satin.json b/assets/library/materials/metal/chromium-satin.json
new file mode 100644
index 00000000..e8384182
--- /dev/null
+++ b/assets/library/materials/metal/chromium-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/chromium-satin",
+ "name": "Chromium, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6457, 0.6498, 0.6538],
+ "base_metalness": 1.0,
+ "specular_color": [0.7404, 0.7584, 0.8073],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "silver", "automotive", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "A. D. Rakić, A. B. Djurišic, J. M. Elazar, M. L. Majewski. Optical properties of metallic films for vertical-cavity optoelectronic devices. Appl. Opt. 37, 5271-5283 (1998) [Calculation script (Python)]; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cr/nk/Rakic-LD.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0273 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/cobalt-polished.json b/assets/library/materials/metal/cobalt-polished.json
new file mode 100644
index 00000000..78de9fab
--- /dev/null
+++ b/assets/library/materials/metal/cobalt-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/cobalt-polished",
+ "name": "Cobalt, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6704, 0.6566, 0.6217],
+ "base_metalness": 1.0,
+ "specular_color": [0.8087, 0.8187, 0.8531],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Co/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0125 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/copper-bead-blasted.json b/assets/library/materials/metal/copper-bead-blasted.json
new file mode 100644
index 00000000..2a1a16cf
--- /dev/null
+++ b/assets/library/materials/metal/copper-bead-blasted.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/copper-bead-blasted",
+ "name": "Copper, bead blasted",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9015, 0.7108, 0.5855],
+ "base_metalness": 1.0,
+ "specular_color": [0.9872, 0.9665, 0.9613],
+ "specular_roughness": 0.45
+ },
+ "tags": ["pure-metal", "orange", "kitchen", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cu/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0074 of the exact Fresnel reflectance at every angle. Roughness authored, bead blasted: uniform micro-roughness, reflections blurred to a sheen.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/copper-brushed.json b/assets/library/materials/metal/copper-brushed.json
new file mode 100644
index 00000000..cc25619f
--- /dev/null
+++ b/assets/library/materials/metal/copper-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/copper-brushed",
+ "name": "Copper, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.9015, 0.7108, 0.5855],
+ "base_metalness": 1.0,
+ "specular_color": [0.9872, 0.9665, 0.9613],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["pure-metal", "orange", "kitchen", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cu/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0074 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/copper-polished.json b/assets/library/materials/metal/copper-polished.json
new file mode 100644
index 00000000..216426cb
--- /dev/null
+++ b/assets/library/materials/metal/copper-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/copper-polished",
+ "name": "Copper, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9015, 0.7108, 0.5855],
+ "base_metalness": 1.0,
+ "specular_color": [0.9872, 0.9665, 0.9613],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "orange", "kitchen", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cu/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0074 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/copper-satin.json b/assets/library/materials/metal/copper-satin.json
new file mode 100644
index 00000000..785f1352
--- /dev/null
+++ b/assets/library/materials/metal/copper-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/copper-satin",
+ "name": "Copper, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9015, 0.7108, 0.5855],
+ "base_metalness": 1.0,
+ "specular_color": [0.9872, 0.9665, 0.9613],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "orange", "kitchen", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cu/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0074 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/electrum-polished.json b/assets/library/materials/metal/electrum-polished.json
new file mode 100644
index 00000000..55998758
--- /dev/null
+++ b/assets/library/materials/metal/electrum-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/electrum-polished",
+ "name": "Electrum (Au50 Ag50), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9047, 0.896, 0.6597],
+ "base_metalness": 1.0,
+ "specular_color": [0.9732, 0.9765, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "gold", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "D. Rioux, S. Vallières, S. Besner, P. Muñoz, E. Mazur, M. Meunier. An analytic model for the dielectric function of Au, Ag, and their alloys. Adv. Opt. Mater. 2, 176-182 (2014) (See Supporting information for MATLAB model); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Au-Ag/nk/Rioux-Au50Ag50.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0203 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/gilding-metal-polished.json b/assets/library/materials/metal/gilding-metal-polished.json
new file mode 100644
index 00000000..69e6bd11
--- /dev/null
+++ b/assets/library/materials/metal/gilding-metal-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/gilding-metal-polished",
+ "name": "Gilding metal (Cu90 Zn10), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.8544, 0.7275, 0.5016],
+ "base_metalness": 1.0,
+ "specular_color": [0.9795, 0.9921, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "orange", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. R. Querry. Optical constants, Contractor Report CRDC-CR-85034 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Cu-Zn/nk/Querry-Cu90Zn10.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0195 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/gold-brushed.json b/assets/library/materials/metal/gold-brushed.json
new file mode 100644
index 00000000..0760eb20
--- /dev/null
+++ b/assets/library/materials/metal/gold-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/gold-brushed",
+ "name": "Gold, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.9277, 0.7966, 0.4057],
+ "base_metalness": 1.0,
+ "specular_color": [0.982, 1.0, 0.9713],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["pure-metal", "gold", "jewellery", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Au/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0171 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/gold-polished.json b/assets/library/materials/metal/gold-polished.json
new file mode 100644
index 00000000..80ec64fb
--- /dev/null
+++ b/assets/library/materials/metal/gold-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/gold-polished",
+ "name": "Gold, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9277, 0.7966, 0.4057],
+ "base_metalness": 1.0,
+ "specular_color": [0.982, 1.0, 0.9713],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "gold", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Au/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0171 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/gold-satin.json b/assets/library/materials/metal/gold-satin.json
new file mode 100644
index 00000000..1cae277c
--- /dev/null
+++ b/assets/library/materials/metal/gold-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/gold-satin",
+ "name": "Gold, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9277, 0.7966, 0.4057],
+ "base_metalness": 1.0,
+ "specular_color": [0.982, 1.0, 0.9713],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "gold", "jewellery", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Au/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0171 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/gold-silver-au60-polished.json b/assets/library/materials/metal/gold-silver-au60-polished.json
new file mode 100644
index 00000000..c3b50e53
--- /dev/null
+++ b/assets/library/materials/metal/gold-silver-au60-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/gold-silver-au60-polished",
+ "name": "Gold-silver alloy (Au60 Ag40), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.8975, 0.883, 0.5932],
+ "base_metalness": 1.0,
+ "specular_color": [0.9722, 0.9769, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "gold", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "D. Rioux, S. Vallières, S. Besner, P. Muñoz, E. Mazur, M. Meunier. An analytic model for the dielectric function of Au, Ag, and their alloys. Adv. Opt. Mater. 2, 176-182 (2014) (See Supporting information for MATLAB model); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Au-Ag/nk/Rioux-Au60Ag40.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0226 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/gold-silver-au80-polished.json b/assets/library/materials/metal/gold-silver-au80-polished.json
new file mode 100644
index 00000000..c379890f
--- /dev/null
+++ b/assets/library/materials/metal/gold-silver-au80-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/gold-silver-au80-polished",
+ "name": "Gold-silver alloy (Au80 Ag20), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9, 0.8511, 0.4819],
+ "base_metalness": 1.0,
+ "specular_color": [0.9749, 0.985, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "gold", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "D. Rioux, S. Vallières, S. Besner, P. Muñoz, E. Mazur, M. Meunier. An analytic model for the dielectric function of Au, Ag, and their alloys. Adv. Opt. Mater. 2, 176-182 (2014) (See Supporting information for MATLAB model); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Au-Ag/nk/Rioux-Au80Ag20.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.022 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/iridium-polished.json b/assets/library/materials/metal/iridium-polished.json
new file mode 100644
index 00000000..629e14d9
--- /dev/null
+++ b/assets/library/materials/metal/iridium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/iridium-polished",
+ "name": "Iridium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.7384, 0.7323, 0.7049],
+ "base_metalness": 1.0,
+ "specular_color": [0.7653, 0.7763, 0.8018],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. Schmitt, N. Felde, T. Doehring, M. Stollenwerk, I. Uschmann, K. Hanemann, M. Siegler, G. Klemm, N. Gratzke, A. Tuennermann, S. Schwinde, S. Schroeder, A. Szeghalmi. Optical, structural, and functional properties of highly reflective and stable iridium mirror coatings for infrared applications. Opt. Mater. Express 12, 545-559 (2022) (See supplementary materials. High-resolution data kindly provided by Paul Schmitt.); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ir/nk/Schmitt-MS.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0268 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/iron-as-cast.json b/assets/library/materials/metal/iron-as-cast.json
new file mode 100644
index 00000000..14f51884
--- /dev/null
+++ b/assets/library/materials/metal/iron-as-cast.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/iron-as-cast",
+ "name": "Iron, as cast",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5224, 0.5141, 0.4971],
+ "base_metalness": 1.0,
+ "specular_color": [0.7674, 0.7676, 0.797],
+ "specular_roughness": 0.55
+ },
+ "tags": ["pure-metal", "grey", "industrial", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Fe/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0175 of the exact Fresnel reflectance at every angle. Roughness authored, as cast or hot rolled: coarse surface, broad highlight.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/iron-bead-blasted.json b/assets/library/materials/metal/iron-bead-blasted.json
new file mode 100644
index 00000000..935b9018
--- /dev/null
+++ b/assets/library/materials/metal/iron-bead-blasted.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/iron-bead-blasted",
+ "name": "Iron, bead blasted",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5224, 0.5141, 0.4971],
+ "base_metalness": 1.0,
+ "specular_color": [0.7674, 0.7676, 0.797],
+ "specular_roughness": 0.45
+ },
+ "tags": ["pure-metal", "grey", "industrial", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Fe/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0175 of the exact Fresnel reflectance at every angle. Roughness authored, bead blasted: uniform micro-roughness, reflections blurred to a sheen.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/iron-polished.json b/assets/library/materials/metal/iron-polished.json
new file mode 100644
index 00000000..45058005
--- /dev/null
+++ b/assets/library/materials/metal/iron-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/iron-polished",
+ "name": "Iron, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5224, 0.5141, 0.4971],
+ "base_metalness": 1.0,
+ "specular_color": [0.7674, 0.7676, 0.797],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Fe/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0175 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/iron-satin.json b/assets/library/materials/metal/iron-satin.json
new file mode 100644
index 00000000..ea3be260
--- /dev/null
+++ b/assets/library/materials/metal/iron-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/iron-satin",
+ "name": "Iron, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5224, 0.5141, 0.4971],
+ "base_metalness": 1.0,
+ "specular_color": [0.7674, 0.7676, 0.797],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "grey", "industrial", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Fe/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0175 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/lead-polished.json b/assets/library/materials/metal/lead-polished.json
new file mode 100644
index 00000000..9d1852d4
--- /dev/null
+++ b/assets/library/materials/metal/lead-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/lead-polished",
+ "name": "Lead, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6599, 0.661, 0.6886],
+ "base_metalness": 1.0,
+ "specular_color": [0.7787, 0.7795, 0.809],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "A. G. Mathewson and H. P. Myers. Absolute values of the optical constants of some pure metals. Phys. Scr. 4, 291-292 (1971); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Pb/nk/Mathewson-298K.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0139 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/magnesium-polished.json b/assets/library/materials/metal/magnesium-polished.json
new file mode 100644
index 00000000..7afcc34d
--- /dev/null
+++ b/assets/library/materials/metal/magnesium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/magnesium-polished",
+ "name": "Magnesium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.8889, 0.8825, 0.8927],
+ "base_metalness": 1.0,
+ "specular_color": [0.9049, 0.9129, 0.9437],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. J. Palm, J. B. Murray, T. C. Narayan, J. N. Munday. Dynamic optical properties of metal hydrides. ACS Photonics 5, 4677-4686 (2018) (Numerical data kindly provided by Kevin Palm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Mg/nk/Palm.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0096 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/mercury-polished.json b/assets/library/materials/metal/mercury-polished.json
new file mode 100644
index 00000000..580f0cbf
--- /dev/null
+++ b/assets/library/materials/metal/mercury-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/mercury-polished",
+ "name": "Mercury (liquid), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.7806, 0.7796, 0.7786],
+ "base_metalness": 1.0,
+ "specular_color": [0.8304, 0.8497, 0.8948],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "T. Inagaki, E. T. Arakawa, and M. W. Williams. Optical properties of liquid mercury. Phys. Rev. B 23, 5246-5262 (1981); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Hg/nk/Inagaki.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0137 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/molybdenum-polished.json b/assets/library/materials/metal/molybdenum-polished.json
new file mode 100644
index 00000000..6aacadb4
--- /dev/null
+++ b/assets/library/materials/metal/molybdenum-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/molybdenum-polished",
+ "name": "Molybdenum, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5765, 0.5838, 0.5829],
+ "base_metalness": 1.0,
+ "specular_color": [0.7302, 0.7322, 0.7632],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. M. Kirillova, L. V. Nomerovannaya, M. M. Noskov. Optical properties of molybdenum single crystals , Sov. Phys. JETP 33, 1210-1214 (1971); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Mo/nk/Kirillova.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0282 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/nickel-brushed.json b/assets/library/materials/metal/nickel-brushed.json
new file mode 100644
index 00000000..07e87378
--- /dev/null
+++ b/assets/library/materials/metal/nickel-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/nickel-brushed",
+ "name": "Nickel, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.6715, 0.6434, 0.5745],
+ "base_metalness": 1.0,
+ "specular_color": [0.8239, 0.8332, 0.8653],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["pure-metal", "silver", "industrial", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ni/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0126 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/nickel-polished.json b/assets/library/materials/metal/nickel-polished.json
new file mode 100644
index 00000000..4c2086a4
--- /dev/null
+++ b/assets/library/materials/metal/nickel-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/nickel-polished",
+ "name": "Nickel, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6715, 0.6434, 0.5745],
+ "base_metalness": 1.0,
+ "specular_color": [0.8239, 0.8332, 0.8653],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ni/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0126 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/nickel-satin.json b/assets/library/materials/metal/nickel-satin.json
new file mode 100644
index 00000000..ad63f742
--- /dev/null
+++ b/assets/library/materials/metal/nickel-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/nickel-satin",
+ "name": "Nickel, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6715, 0.6434, 0.5745],
+ "base_metalness": 1.0,
+ "specular_color": [0.8239, 0.8332, 0.8653],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "silver", "industrial", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ni/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0126 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/niobium-polished.json b/assets/library/materials/metal/niobium-polished.json
new file mode 100644
index 00000000..4b365782
--- /dev/null
+++ b/assets/library/materials/metal/niobium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/niobium-polished",
+ "name": "Niobium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5027, 0.5066, 0.5017],
+ "base_metalness": 1.0,
+ "specular_color": [0.7706, 0.7692, 0.7904],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "J. H. Weaver, D. W. Lynch, C. G. Olson. Optical properties of niobium from 0.1 to 36.4 eV. Phys. Rev. B 7, 4311-4318 (1973) (Data points extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Nb/nk/Weaver.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0173 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/palladium-polished.json b/assets/library/materials/metal/palladium-polished.json
new file mode 100644
index 00000000..879d1757
--- /dev/null
+++ b/assets/library/materials/metal/palladium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/palladium-polished",
+ "name": "Palladium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.7167, 0.6988, 0.6589],
+ "base_metalness": 1.0,
+ "specular_color": [0.8409, 0.8509, 0.8818],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Pd/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0134 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/platinum-polished.json b/assets/library/materials/metal/platinum-polished.json
new file mode 100644
index 00000000..4839a35e
--- /dev/null
+++ b/assets/library/materials/metal/platinum-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/platinum-polished",
+ "name": "Platinum, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6598, 0.6398, 0.5915],
+ "base_metalness": 1.0,
+ "specular_color": [0.804, 0.8172, 0.8482],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "A. D. Rakić, A. B. Djurišic, J. M. Elazar, M. L. Majewski. Optical properties of metallic films for vertical-cavity optoelectronic devices. Appl. Opt. 37, 5271-5283 (1998) [Calculation script (Python)]; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Pt/nk/Rakic-LD.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0123 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/red-brass-polished.json b/assets/library/materials/metal/red-brass-polished.json
new file mode 100644
index 00000000..92ce9418
--- /dev/null
+++ b/assets/library/materials/metal/red-brass-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/red-brass-polished",
+ "name": "Red brass (Cu85 Zn15), polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.8218, 0.7241, 0.4623],
+ "base_metalness": 1.0,
+ "specular_color": [0.9809, 1.0, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "orange", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "M. R. Querry. Optical constants, Contractor Report CRDC-CR-85034 (1985); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/Cu-Zn/nk/Querry-Cu85Zn15.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0421 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/rhodium-polished.json b/assets/library/materials/metal/rhodium-polished.json
new file mode 100644
index 00000000..3f26924e
--- /dev/null
+++ b/assets/library/materials/metal/rhodium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/rhodium-polished",
+ "name": "Rhodium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.7834, 0.7665, 0.746],
+ "base_metalness": 1.0,
+ "specular_color": [0.8127, 0.8177, 0.834],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "J. H. Weaver, C. G. Olson, D. W. Lynch. Optical investigation of the electronic structure of bulk Rh and Ir. Phys. Rev. B 15, 4115 (1977); Handbook of Optical Constants of Solids, Edward D. Palik, ed. Academic Press, Boston, 1985 * Ref. 2 provides numerical values for the graphical data reported in Ref. 1; M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Rh/nk/Weaver.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0129 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/rose-gold-polished.json b/assets/library/materials/metal/rose-gold-polished.json
new file mode 100644
index 00000000..e06c9299
--- /dev/null
+++ b/assets/library/materials/metal/rose-gold-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/rose-gold-polished",
+ "name": "Rose gold, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9159, 0.758, 0.4866],
+ "base_metalness": 1.0,
+ "specular_color": [0.9843, 0.9849, 0.9668],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "pink", "polished", "jewellery", "opaque"],
+ "source": {
+ "kind": "authored",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Au/nk/McPeak.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Cu/nk/McPeak.yml"],
+ "notes": "Authored approximation: no measured n and k for gold-copper alloys in the database. Colour and edge tint are a 55 to 45 blend of the measured gold and copper values, close to an 18 carat rose alloy's look. Roughness authored, polished finish.",
+ "authored": ["base_color", "specular_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/silver-brushed.json b/assets/library/materials/metal/silver-brushed.json
new file mode 100644
index 00000000..ea99840d
--- /dev/null
+++ b/assets/library/materials/metal/silver-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/silver-brushed",
+ "name": "Silver, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.9886, 0.9876, 0.9803],
+ "base_metalness": 1.0,
+ "specular_color": [0.9946, 0.9955, 0.9984],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["pure-metal", "silver", "jewellery", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ag/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0016 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/silver-polished.json b/assets/library/materials/metal/silver-polished.json
new file mode 100644
index 00000000..ee90e691
--- /dev/null
+++ b/assets/library/materials/metal/silver-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/silver-polished",
+ "name": "Silver, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9886, 0.9876, 0.9803],
+ "base_metalness": 1.0,
+ "specular_color": [0.9946, 0.9955, 0.9984],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "silver", "jewellery", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ag/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0016 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/silver-satin.json b/assets/library/materials/metal/silver-satin.json
new file mode 100644
index 00000000..dfb51f87
--- /dev/null
+++ b/assets/library/materials/metal/silver-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/silver-satin",
+ "name": "Silver, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.9886, 0.9876, 0.9803],
+ "base_metalness": 1.0,
+ "specular_color": [0.9946, 0.9955, 0.9984],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "silver", "jewellery", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "K. M. McPeak, S. V. Jayanti, S. J. P. Kress, S. Meyer, S. Iotti, A. Rossinelli, D. J. Norris. Plasmonic films can easily be better: Rules and recipes. ACS Photonics 2, 326-333 (2015); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ag/nk/McPeak.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0016 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/stainless-steel-austenitic-polished.json b/assets/library/materials/metal/stainless-steel-austenitic-polished.json
new file mode 100644
index 00000000..7b2897fd
--- /dev/null
+++ b/assets/library/materials/metal/stainless-steel-austenitic-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/stainless-steel-austenitic-polished",
+ "name": "Stainless steel, austenitic, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6557, 0.6405, 0.6043],
+ "base_metalness": 1.0,
+ "specular_color": [0.8039, 0.8214, 0.8632],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "silver", "kitchen", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "Björn Karlsson, Carl G. Ribbing. Optical constants and spectral selectivity of stainless steel and its oxides. J. Appl. Phys. 53, 6340-6346 (1982) (Data extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/stainless%20steel/nk/Karlsson-austenitic.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0122 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/stainless-steel-bead-blasted.json b/assets/library/materials/metal/stainless-steel-bead-blasted.json
new file mode 100644
index 00000000..b58dc4ff
--- /dev/null
+++ b/assets/library/materials/metal/stainless-steel-bead-blasted.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/stainless-steel-bead-blasted",
+ "name": "Stainless steel, bead blasted",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6557, 0.6405, 0.6043],
+ "base_metalness": 1.0,
+ "specular_color": [0.8039, 0.8214, 0.8632],
+ "specular_roughness": 0.45
+ },
+ "tags": ["alloy", "silver", "kitchen", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "Björn Karlsson, Carl G. Ribbing. Optical constants and spectral selectivity of stainless steel and its oxides. J. Appl. Phys. 53, 6340-6346 (1982) (Data extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/stainless%20steel/nk/Karlsson-austenitic.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0122 of the exact Fresnel reflectance at every angle. Roughness authored, bead blasted: uniform micro-roughness, reflections blurred to a sheen.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/stainless-steel-brushed.json b/assets/library/materials/metal/stainless-steel-brushed.json
new file mode 100644
index 00000000..89a2ec39
--- /dev/null
+++ b/assets/library/materials/metal/stainless-steel-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/stainless-steel-brushed",
+ "name": "Stainless steel, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.6557, 0.6405, 0.6043],
+ "base_metalness": 1.0,
+ "specular_color": [0.8039, 0.8214, 0.8632],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["alloy", "silver", "kitchen", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "Björn Karlsson, Carl G. Ribbing. Optical constants and spectral selectivity of stainless steel and its oxides. J. Appl. Phys. 53, 6340-6346 (1982) (Data extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/stainless%20steel/nk/Karlsson-austenitic.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0122 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/stainless-steel-ferritic-polished.json b/assets/library/materials/metal/stainless-steel-ferritic-polished.json
new file mode 100644
index 00000000..0ca74868
--- /dev/null
+++ b/assets/library/materials/metal/stainless-steel-ferritic-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/stainless-steel-ferritic-polished",
+ "name": "Stainless steel, ferritic, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5967, 0.5877, 0.5707],
+ "base_metalness": 1.0,
+ "specular_color": [0.829, 0.8451, 0.8945],
+ "specular_roughness": 0.04
+ },
+ "tags": ["alloy", "silver", "kitchen", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "Björn Karlsson, Carl G. Ribbing. Optical constants and spectral selectivity of stainless steel and its oxides. J. Appl. Phys. 53, 6340-6346 (1982) (Data extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/stainless%20steel/nk/Karlsson-ferritic.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0103 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/stainless-steel-mirror.json b/assets/library/materials/metal/stainless-steel-mirror.json
new file mode 100644
index 00000000..a7afbe6a
--- /dev/null
+++ b/assets/library/materials/metal/stainless-steel-mirror.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/stainless-steel-mirror",
+ "name": "Stainless steel, mirror",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6557, 0.6405, 0.6043],
+ "base_metalness": 1.0,
+ "specular_color": [0.8039, 0.8214, 0.8632],
+ "specular_roughness": 0.02
+ },
+ "tags": ["alloy", "silver", "kitchen", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "Björn Karlsson, Carl G. Ribbing. Optical constants and spectral selectivity of stainless steel and its oxides. J. Appl. Phys. 53, 6340-6346 (1982) (Data extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/stainless%20steel/nk/Karlsson-austenitic.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0122 of the exact Fresnel reflectance at every angle. Roughness authored, mirror finish: the sharpest highlight a real buffed part keeps.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/stainless-steel-satin.json b/assets/library/materials/metal/stainless-steel-satin.json
new file mode 100644
index 00000000..b59352c0
--- /dev/null
+++ b/assets/library/materials/metal/stainless-steel-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/stainless-steel-satin",
+ "name": "Stainless steel, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6557, 0.6405, 0.6043],
+ "base_metalness": 1.0,
+ "specular_color": [0.8039, 0.8214, 0.8632],
+ "specular_roughness": 0.25
+ },
+ "tags": ["alloy", "silver", "kitchen", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "Björn Karlsson, Carl G. Ribbing. Optical constants and spectral selectivity of stainless steel and its oxides. J. Appl. Phys. 53, 6340-6346 (1982) (Data extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/alloys/stainless%20steel/nk/Karlsson-austenitic.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0122 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-anodised-blue.json b/assets/library/materials/metal/titanium-anodised-blue.json
new file mode 100644
index 00000000..6594d727
--- /dev/null
+++ b/assets/library/materials/metal/titanium-anodised-blue.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-anodised-blue",
+ "name": "Titanium, anodised blue",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.12,
+ "thin_film_weight": 1.0,
+ "thin_film_thickness": 0.05,
+ "thin_film_ior": 2.449
+ },
+ "tags": ["anodised", "blue", "thin-film", "polished", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); A. Jolivet et al. Structural, optical, and electrical properties of TiO2 thin films deposited by ALD. Appl. Surf. Sci. 608, 155214 (2023)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiO2/nk/Jolivet-amorphous.yml"],
+ "notes": "Titanium coloured by an anodic oxide film: interference colour, no dye. The film thickness 0.05 um was chosen by computing the reflectance of an amorphous TiO2 film (n 2.449 at 550 nm) on measured titanium with the Airy formula for thicknesses 0 to 0.155 um and picking the one whose colour reads as blue. Needs the thin-film lobe; without it the preset renders as plain titanium. Roughness authored.",
+ "authored": ["specular_roughness", "thin_film_thickness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-anodised-bronze.json b/assets/library/materials/metal/titanium-anodised-bronze.json
new file mode 100644
index 00000000..9bc3a815
--- /dev/null
+++ b/assets/library/materials/metal/titanium-anodised-bronze.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-anodised-bronze",
+ "name": "Titanium, anodised bronze",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.12,
+ "thin_film_weight": 1.0,
+ "thin_film_thickness": 0.025,
+ "thin_film_ior": 2.449
+ },
+ "tags": ["anodised", "brown", "thin-film", "polished", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); A. Jolivet et al. Structural, optical, and electrical properties of TiO2 thin films deposited by ALD. Appl. Surf. Sci. 608, 155214 (2023)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiO2/nk/Jolivet-amorphous.yml"],
+ "notes": "Titanium coloured by an anodic oxide film: interference colour, no dye. The film thickness 0.025 um was chosen by computing the reflectance of an amorphous TiO2 film (n 2.449 at 550 nm) on measured titanium with the Airy formula for thicknesses 0 to 0.155 um and picking the one whose colour reads as bronze. Needs the thin-film lobe; without it the preset renders as plain titanium. Roughness authored.",
+ "authored": ["specular_roughness", "thin_film_thickness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-anodised-gold.json b/assets/library/materials/metal/titanium-anodised-gold.json
new file mode 100644
index 00000000..2e776d2f
--- /dev/null
+++ b/assets/library/materials/metal/titanium-anodised-gold.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-anodised-gold",
+ "name": "Titanium, anodised gold",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.12,
+ "thin_film_weight": 1.0,
+ "thin_film_thickness": 0.115,
+ "thin_film_ior": 2.449
+ },
+ "tags": ["anodised", "gold", "thin-film", "polished", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); A. Jolivet et al. Structural, optical, and electrical properties of TiO2 thin films deposited by ALD. Appl. Surf. Sci. 608, 155214 (2023)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiO2/nk/Jolivet-amorphous.yml"],
+ "notes": "Titanium coloured by an anodic oxide film: interference colour, no dye. The film thickness 0.115 um was chosen by computing the reflectance of an amorphous TiO2 film (n 2.449 at 550 nm) on measured titanium with the Airy formula for thicknesses 0 to 0.155 um and picking the one whose colour reads as gold. Needs the thin-film lobe; without it the preset renders as plain titanium. Roughness authored.",
+ "authored": ["specular_roughness", "thin_film_thickness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-anodised-light-blue.json b/assets/library/materials/metal/titanium-anodised-light-blue.json
new file mode 100644
index 00000000..cc2d43e4
--- /dev/null
+++ b/assets/library/materials/metal/titanium-anodised-light-blue.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-anodised-light-blue",
+ "name": "Titanium, anodised light blue",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.12,
+ "thin_film_weight": 1.0,
+ "thin_film_thickness": 0.065,
+ "thin_film_ior": 2.449
+ },
+ "tags": ["anodised", "blue", "thin-film", "polished", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); A. Jolivet et al. Structural, optical, and electrical properties of TiO2 thin films deposited by ALD. Appl. Surf. Sci. 608, 155214 (2023)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiO2/nk/Jolivet-amorphous.yml"],
+ "notes": "Titanium coloured by an anodic oxide film: interference colour, no dye. The film thickness 0.065 um was chosen by computing the reflectance of an amorphous TiO2 film (n 2.449 at 550 nm) on measured titanium with the Airy formula for thicknesses 0 to 0.155 um and picking the one whose colour reads as light blue. Needs the thin-film lobe; without it the preset renders as plain titanium. Roughness authored.",
+ "authored": ["specular_roughness", "thin_film_thickness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-anodised-magenta.json b/assets/library/materials/metal/titanium-anodised-magenta.json
new file mode 100644
index 00000000..453e3af8
--- /dev/null
+++ b/assets/library/materials/metal/titanium-anodised-magenta.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-anodised-magenta",
+ "name": "Titanium, anodised magenta",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.12,
+ "thin_film_weight": 1.0,
+ "thin_film_thickness": 0.14,
+ "thin_film_ior": 2.449
+ },
+ "tags": ["anodised", "pink", "thin-film", "polished", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); A. Jolivet et al. Structural, optical, and electrical properties of TiO2 thin films deposited by ALD. Appl. Surf. Sci. 608, 155214 (2023)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiO2/nk/Jolivet-amorphous.yml"],
+ "notes": "Titanium coloured by an anodic oxide film: interference colour, no dye. The film thickness 0.14 um was chosen by computing the reflectance of an amorphous TiO2 film (n 2.449 at 550 nm) on measured titanium with the Airy formula for thicknesses 0 to 0.155 um and picking the one whose colour reads as magenta. Needs the thin-film lobe; without it the preset renders as plain titanium. Roughness authored.",
+ "authored": ["specular_roughness", "thin_film_thickness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-anodised-purple.json b/assets/library/materials/metal/titanium-anodised-purple.json
new file mode 100644
index 00000000..69fb3af8
--- /dev/null
+++ b/assets/library/materials/metal/titanium-anodised-purple.json
@@ -0,0 +1,26 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-anodised-purple",
+ "name": "Titanium, anodised purple",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.12,
+ "thin_film_weight": 1.0,
+ "thin_film_thickness": 0.04,
+ "thin_film_ior": 2.449
+ },
+ "tags": ["anodised", "purple", "thin-film", "polished", "jewellery"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024); A. Jolivet et al. Structural, optical, and electrical properties of TiO2 thin films deposited by ALD. Appl. Surf. Sci. 608, 155214 (2023)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml", "https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiO2/nk/Jolivet-amorphous.yml"],
+ "notes": "Titanium coloured by an anodic oxide film: interference colour, no dye. The film thickness 0.04 um was chosen by computing the reflectance of an amorphous TiO2 film (n 2.449 at 550 nm) on measured titanium with the Airy formula for thicknesses 0 to 0.155 um and picking the one whose colour reads as purple. Needs the thin-film lobe; without it the preset renders as plain titanium. Roughness authored.",
+ "authored": ["specular_roughness", "thin_film_thickness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-bead-blasted.json b/assets/library/materials/metal/titanium-bead-blasted.json
new file mode 100644
index 00000000..d55ceae0
--- /dev/null
+++ b/assets/library/materials/metal/titanium-bead-blasted.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-bead-blasted",
+ "name": "Titanium, bead blasted",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.45
+ },
+ "tags": ["pure-metal", "grey", "industrial", "rough", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0134 of the exact Fresnel reflectance at every angle. Roughness authored, bead blasted: uniform micro-roughness, reflections blurred to a sheen.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-brushed.json b/assets/library/materials/metal/titanium-brushed.json
new file mode 100644
index 00000000..b1c90d0e
--- /dev/null
+++ b/assets/library/materials/metal/titanium-brushed.json
@@ -0,0 +1,24 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-brushed",
+ "name": "Titanium, brushed",
+ "category": "Metal",
+ "type": "metal_brushed",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.3,
+ "specular_roughness_anisotropy": 0.8
+ },
+ "tags": ["pure-metal", "grey", "industrial", "brushed", "opaque", "anisotropic"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0134 of the exact Fresnel reflectance at every angle. Roughness authored, brushed: directional grain; anisotropy 0.8 stretches the highlight across the grain.",
+ "authored": ["specular_roughness", "specular_roughness_anisotropy"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-nitride-polished.json b/assets/library/materials/metal/titanium-nitride-polished.json
new file mode 100644
index 00000000..d2222ff8
--- /dev/null
+++ b/assets/library/materials/metal/titanium-nitride-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-nitride-polished",
+ "name": "Titanium nitride coating, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.544, 0.4691, 0.2656],
+ "base_metalness": 1.0,
+ "specular_color": [0.9306, 0.9788, 1.0],
+ "specular_roughness": 0.04
+ },
+ "tags": ["coating", "gold", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "J. Pflüger, J. Fink. Determination of optical constants by high-energy, electron-energy-loss spectroscopy (EELS), in Handbook of optical constants of solids II, Edward D. Palik, ed. Academic Press, 1991. pp. 293-310; J. Pflüger, J. Fink, W. Weber, K. P. Bohnen, G. Crecelius. Dielectric properties of TiCx, TiNx, VCx, and VNx from 1.5 to 40 eV determined by electron-energy-loss spectroscopy. Phys. Rev. B 30, 1155-1163 (1984); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/TiN/nk/Pfluger.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0405 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-polished.json b/assets/library/materials/metal/titanium-polished.json
new file mode 100644
index 00000000..42c95ee4
--- /dev/null
+++ b/assets/library/materials/metal/titanium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-polished",
+ "name": "Titanium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0134 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/titanium-satin.json b/assets/library/materials/metal/titanium-satin.json
new file mode 100644
index 00000000..60592955
--- /dev/null
+++ b/assets/library/materials/metal/titanium-satin.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/titanium-satin",
+ "name": "Titanium, satin",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.6017, 0.5816, 0.5481],
+ "base_metalness": 1.0,
+ "specular_color": [0.7783, 0.7893, 0.8161],
+ "specular_roughness": 0.25
+ },
+ "tags": ["pure-metal", "grey", "industrial", "satin", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Ti/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0134 of the exact Fresnel reflectance at every angle. Roughness authored, satin: fine abrasive finish, soft highlight, reflections still recognisable.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/tungsten-polished.json b/assets/library/materials/metal/tungsten-polished.json
new file mode 100644
index 00000000..2a58092e
--- /dev/null
+++ b/assets/library/materials/metal/tungsten-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/tungsten-polished",
+ "name": "Tungsten, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.5069, 0.4973, 0.4716],
+ "base_metalness": 1.0,
+ "specular_color": [0.7237, 0.7287, 0.742],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "J. H. Weaver, C. G. Olson, D. W. Lynch. Optical properties of crystalline tungsten. Phys. Rev. B 12, 1293-1297 (1975) (Data points extracted from a figure); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/W/nk/Weaver.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0305 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/vanadium-polished.json b/assets/library/materials/metal/vanadium-polished.json
new file mode 100644
index 00000000..f93f2642
--- /dev/null
+++ b/assets/library/materials/metal/vanadium-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/vanadium-polished",
+ "name": "Vanadium, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.527, 0.5343, 0.5623],
+ "base_metalness": 1.0,
+ "specular_color": [0.7183, 0.7028, 0.7167],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "P. B. Johnson and R. W. Christy. Optical constants of transition metals: Ti, V, Cr, Mn, Fe, Co, Ni, and Pd. Phys. Rev. B 9, 5056-5070 (1974); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/V/nk/Johnson.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0384 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/metal/zinc-polished.json b/assets/library/materials/metal/zinc-polished.json
new file mode 100644
index 00000000..068613a7
--- /dev/null
+++ b/assets/library/materials/metal/zinc-polished.json
@@ -0,0 +1,23 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "metal/zinc-polished",
+ "name": "Zinc, polished",
+ "category": "Metal",
+ "type": "metal",
+ "params": {
+ "base_color": [0.8229, 0.8419, 0.8612],
+ "base_metalness": 1.0,
+ "specular_color": [0.7934, 0.8294, 0.8869],
+ "specular_roughness": 0.04
+ },
+ "tags": ["pure-metal", "grey", "industrial", "polished", "opaque"],
+ "source": {
+ "kind": "measured",
+ "reference": "W. S. M. Werner, K. Glantschnig, C. Ambrosch-Draxl. Optical constants and inelastic electron-scattering data for 17 elemental metals. J. Phys Chem Ref. Data 38, 1013-1092 (2009); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/Zn/nk/Werner-DFT.yml"],
+ "notes": "base_color is the normal-incidence reflectance and specular_color the F82 edge tint, both computed from the measured n and k (380-780 nm, CIE 1931 2 degree observer, D65, ACEScg); the F82 fit stays within 0.0352 of the exact Fresnel reflectance at every angle. Roughness authored, polished: a near-mirror reflection with a slight blur, GGX alpha 0.0016.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-black.json b/assets/library/materials/paint/gloss-black.json
new file mode 100644
index 00000000..0f005adf
--- /dev/null
+++ b/assets/library/materials/paint/gloss-black.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-black",
+ "name": "Gloss enamel, black",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.004, 0.004, 0.004],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "black", "opaque", "automotive"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #0d0d0d. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-blue.json b/assets/library/materials/paint/gloss-blue.json
new file mode 100644
index 00000000..aab90e03
--- /dev/null
+++ b/assets/library/materials/paint/gloss-blue.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-blue",
+ "name": "Gloss enamel, blue",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.038, 0.0503, 0.2633],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "blue", "opaque", "automotive"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #1c3f94. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-green.json b/assets/library/materials/paint/gloss-green.json
new file mode 100644
index 00000000..2652bfbe
--- /dev/null
+++ b/assets/library/materials/paint/gloss-green.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-green",
+ "name": "Gloss enamel, green",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.0603, 0.1363, 0.0532],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "green", "opaque", "automotive"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #1f6b3a. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-orange.json b/assets/library/materials/paint/gloss-orange.json
new file mode 100644
index 00000000..5bdc7724
--- /dev/null
+++ b/assets/library/materials/paint/gloss-orange.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-orange",
+ "name": "Gloss enamel, orange",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.5288, 0.1482, 0.0308],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "orange", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #e8590c. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-red.json b/assets/library/materials/paint/gloss-red.json
new file mode 100644
index 00000000..fc44240d
--- /dev/null
+++ b/assets/library/materials/paint/gloss-red.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-red",
+ "name": "Gloss enamel, red",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.2859, 0.0381, 0.0197],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "red", "opaque", "automotive"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #b5121b. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-white.json b/assets/library/materials/paint/gloss-white.json
new file mode 100644
index 00000000..2a1b0a34
--- /dev/null
+++ b/assets/library/materials/paint/gloss-white.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-white",
+ "name": "Gloss enamel, white",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.8535, 0.8546, 0.827],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "white", "opaque", "furniture"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #eeeeea. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/gloss-yellow.json b/assets/library/materials/paint/gloss-yellow.json
new file mode 100644
index 00000000..0fbeb5c2
--- /dev/null
+++ b/assets/library/materials/paint/gloss-yellow.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/gloss-yellow",
+ "name": "Gloss enamel, yellow",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.7472, 0.5699, 0.0793],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.03,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "gloss", "coat", "yellow", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #f5c400. Gloss enamel: pigment layer under a smooth binder film, coat roughness 0.03; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/matte-black.json b/assets/library/materials/paint/matte-black.json
new file mode 100644
index 00000000..0ffaca0d
--- /dev/null
+++ b/assets/library/materials/paint/matte-black.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/matte-black",
+ "name": "Matte paint, black",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.006, 0.006, 0.006],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.7,
+ "specular_ior": 1.5,
+ "coat_weight": 0.0
+ },
+ "tags": ["paint", "matte", "black", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #121212. Flat (matte) paint: pigment-rich surface with no binder film on top, specular roughness 0.7 and a rough diffuse lobe; coat off. specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/matte-sage.json b/assets/library/materials/paint/matte-sage.json
new file mode 100644
index 00000000..02e5208f
--- /dev/null
+++ b/assets/library/materials/paint/matte-sage.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/matte-sage",
+ "name": "Matte paint, sage green",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.3429, 0.3849, 0.2672],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.7,
+ "specular_ior": 1.5,
+ "coat_weight": 0.0
+ },
+ "tags": ["paint", "matte", "green", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #9aa889. Flat (matte) paint: pigment-rich surface with no binder film on top, specular roughness 0.7 and a rough diffuse lobe; coat off. specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/matte-terracotta.json b/assets/library/materials/paint/matte-terracotta.json
new file mode 100644
index 00000000..bc91d682
--- /dev/null
+++ b/assets/library/materials/paint/matte-terracotta.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/matte-terracotta",
+ "name": "Matte paint, terracotta",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.3254, 0.1403, 0.0656],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.7,
+ "specular_ior": 1.5,
+ "coat_weight": 0.0
+ },
+ "tags": ["paint", "matte", "orange", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #b5603f. Flat (matte) paint: pigment-rich surface with no binder film on top, specular roughness 0.7 and a rough diffuse lobe; coat off. specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/matte-white.json b/assets/library/materials/paint/matte-white.json
new file mode 100644
index 00000000..1c6d1a07
--- /dev/null
+++ b/assets/library/materials/paint/matte-white.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/matte-white",
+ "name": "Matte paint, white",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.8585, 0.8551, 0.8271],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.7,
+ "specular_ior": 1.5,
+ "coat_weight": 0.0
+ },
+ "tags": ["paint", "matte", "white", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #efeeea. Flat (matte) paint: pigment-rich surface with no binder film on top, specular roughness 0.7 and a rough diffuse lobe; coat off. specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/metallic-black.json b/assets/library/materials/paint/metallic-black.json
new file mode 100644
index 00000000..30fb766c
--- /dev/null
+++ b/assets/library/materials/paint/metallic-black.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/metallic-black",
+ "name": "Metallic paint, black",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.0106, 0.0109, 0.0121],
+ "base_metalness": 0.6,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "black", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Metallic automotive paint: aluminium flakes in a tinted basecoat under a clear coat. base_color authored as sRGB #1a1b1d; base_metalness 0.6 authored to mix flake reflection with pigment; flake spread as specular roughness 0.35; clear coat roughness 0.02; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). The sparkle needs the type's flakes graph.",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/metallic-blue.json b/assets/library/materials/paint/metallic-blue.json
new file mode 100644
index 00000000..a7d4df66
--- /dev/null
+++ b/assets/library/materials/paint/metallic-blue.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/metallic-blue",
+ "name": "Metallic paint, blue",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.0325, 0.0449, 0.1745],
+ "base_metalness": 0.7,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "blue", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Metallic automotive paint: aluminium flakes in a tinted basecoat under a clear coat. base_color authored as sRGB #1e3c7a; base_metalness 0.7 authored to mix flake reflection with pigment; flake spread as specular roughness 0.35; clear coat roughness 0.02; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). The sparkle needs the type's flakes graph.",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/metallic-champagne.json b/assets/library/materials/paint/metallic-champagne.json
new file mode 100644
index 00000000..0bd42d10
--- /dev/null
+++ b/assets/library/materials/paint/metallic-champagne.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/metallic-champagne",
+ "name": "Metallic paint, champagne",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.5255, 0.4628, 0.2902],
+ "base_metalness": 0.7,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "gold", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Metallic automotive paint: aluminium flakes in a tinted basecoat under a clear coat. base_color authored as sRGB #c9b48c; base_metalness 0.7 authored to mix flake reflection with pigment; flake spread as specular roughness 0.35; clear coat roughness 0.02; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). The sparkle needs the type's flakes graph.",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/metallic-gunmetal.json b/assets/library/materials/paint/metallic-gunmetal.json
new file mode 100644
index 00000000..91f8b51e
--- /dev/null
+++ b/assets/library/materials/paint/metallic-gunmetal.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/metallic-gunmetal",
+ "name": "Metallic paint, gunmetal",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.0721, 0.0758, 0.0869],
+ "base_metalness": 0.7,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "grey", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Metallic automotive paint: aluminium flakes in a tinted basecoat under a clear coat. base_color authored as sRGB #4a4e54; base_metalness 0.7 authored to mix flake reflection with pigment; flake spread as specular roughness 0.35; clear coat roughness 0.02; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). The sparkle needs the type's flakes graph.",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/metallic-red.json b/assets/library/materials/paint/metallic-red.json
new file mode 100644
index 00000000..a449be45
--- /dev/null
+++ b/assets/library/materials/paint/metallic-red.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/metallic-red",
+ "name": "Metallic paint, red",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.2139, 0.0337, 0.0221],
+ "base_metalness": 0.7,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "red", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Metallic automotive paint: aluminium flakes in a tinted basecoat under a clear coat. base_color authored as sRGB #9e1a22; base_metalness 0.7 authored to mix flake reflection with pigment; flake spread as specular roughness 0.35; clear coat roughness 0.02; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). The sparkle needs the type's flakes graph.",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/metallic-silver.json b/assets/library/materials/paint/metallic-silver.json
new file mode 100644
index 00000000..e7da259a
--- /dev/null
+++ b/assets/library/materials/paint/metallic-silver.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/metallic-silver",
+ "name": "Metallic paint, silver",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.4896, 0.5016, 0.5235],
+ "base_metalness": 0.8,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "silver", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Metallic automotive paint: aluminium flakes in a tinted basecoat under a clear coat. base_color authored as sRGB #b8bcc0; base_metalness 0.8 authored to mix flake reflection with pigment; flake spread as specular roughness 0.35; clear coat roughness 0.02; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). The sparkle needs the type's flakes graph.",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/pearl-blue.json b/assets/library/materials/paint/pearl-blue.json
new file mode 100644
index 00000000..1b997dab
--- /dev/null
+++ b/assets/library/materials/paint/pearl-blue.json
@@ -0,0 +1,30 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/pearl-blue",
+ "name": "Pearl paint, blue",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.0524, 0.0715, 0.2365],
+ "base_metalness": 0.3,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.5,
+ "thin_film_weight": 0.8,
+ "thin_film_thickness": 0.065,
+ "thin_film_ior": 2.4,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "thin-film", "blue", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Pearlescent paint: titanium-dioxide coated mica platelets whose interference shifts the colour with angle. base_color authored as sRGB #2c4c8c; thin film ior 2.4 authored (TiO2), thickness 0.065 um authored for the blue interference hue, weight 0.8 so some pigment shows through; base_metalness 0.3 authored for the platelets' mirror-like sheen; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49).",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "thin_film_weight", "thin_film_thickness", "thin_film_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/pearl-white.json b/assets/library/materials/paint/pearl-white.json
new file mode 100644
index 00000000..28325380
--- /dev/null
+++ b/assets/library/materials/paint/pearl-white.json
@@ -0,0 +1,30 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/pearl-white",
+ "name": "Pearl paint, white",
+ "category": "Paint",
+ "type": "paint_metallic",
+ "params": {
+ "base_color": [0.8706, 0.8636, 0.8146],
+ "base_metalness": 0.3,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.5,
+ "thin_film_weight": 0.8,
+ "thin_film_thickness": 0.08,
+ "thin_film_ior": 2.4,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.02,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "coat", "thin-film", "white", "gloss", "automotive", "needs-graph"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Pearlescent paint: titanium-dioxide coated mica platelets whose interference shifts the colour with angle. base_color authored as sRGB #f1efe8; thin film ior 2.4 authored (TiO2), thickness 0.08 um authored for the white interference hue, weight 0.8 so some pigment shows through; base_metalness 0.3 authored for the platelets' mirror-like sheen; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49).",
+ "authored": ["base_color", "base_metalness", "specular_roughness", "specular_ior", "thin_film_weight", "thin_film_thickness", "thin_film_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/satin-blue.json b/assets/library/materials/paint/satin-blue.json
new file mode 100644
index 00000000..3216aca5
--- /dev/null
+++ b/assets/library/materials/paint/satin-blue.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/satin-blue",
+ "name": "Satin paint, blue",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.0768, 0.1113, 0.2345],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.25,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "satin", "coat", "blue", "opaque", "furniture"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #3a5f8a. Satin (eggshell) paint: the binder film is micro-rough, coat roughness 0.25; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/satin-grey.json b/assets/library/materials/paint/satin-grey.json
new file mode 100644
index 00000000..7de85824
--- /dev/null
+++ b/assets/library/materials/paint/satin-grey.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/satin-grey",
+ "name": "Satin paint, grey",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.21, 0.2153, 0.2286],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.25,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "satin", "coat", "grey", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #7d8084. Satin (eggshell) paint: the binder film is micro-rough, coat roughness 0.25; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/paint/satin-white.json b/assets/library/materials/paint/satin-white.json
new file mode 100644
index 00000000..1aa9bff6
--- /dev/null
+++ b/assets/library/materials/paint/satin-white.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "paint/satin-white",
+ "name": "Satin paint, white",
+ "category": "Paint",
+ "type": "paint",
+ "params": {
+ "base_color": [0.8338, 0.8308, 0.7966],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.5,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.25,
+ "coat_ior": 1.5,
+ "coat_color": [1.0, 1.0, 1.0]
+ },
+ "tags": ["paint", "satin", "coat", "white", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "base_color authored as sRGB #ecebe6. Satin (eggshell) paint: the binder film is micro-rough, coat roughness 0.25; coat_ior 1.5 authored, typical of acrylic and polyurethane clear binders (cured acrylic is about 1.49). specular_ior 1.5 of the pigment layer authored (binder-dominated).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "coat_roughness", "coat_ior", "coat_color"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-black-gloss.json b/assets/library/materials/plastic/abs-black-gloss.json
new file mode 100644
index 00000000..93d99588
--- /dev/null
+++ b/assets/library/materials/plastic/abs-black-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-black-gloss",
+ "name": "ABS, black gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.0052, 0.0052, 0.0052],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "black", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #101010. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-black-matte.json b/assets/library/materials/plastic/abs-black-matte.json
new file mode 100644
index 00000000..31ae3ad9
--- /dev/null
+++ b/assets/library/materials/plastic/abs-black-matte.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-black-matte",
+ "name": "ABS, black matte",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.008, 0.008, 0.008],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "matte", "black", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #161616. Roughness 0.55 authored: fine spark-eroded mould texture, broad highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-black-satin.json b/assets/library/materials/plastic/abs-black-satin.json
new file mode 100644
index 00000000..5cb6b138
--- /dev/null
+++ b/assets/library/materials/plastic/abs-black-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-black-satin",
+ "name": "ABS, black satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.007, 0.007, 0.007],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "black", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #141414. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-blue-gloss.json b/assets/library/materials/plastic/abs-blue-gloss.json
new file mode 100644
index 00000000..459e5277
--- /dev/null
+++ b/assets/library/materials/plastic/abs-blue-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-blue-gloss",
+ "name": "ABS, blue gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.0498, 0.077, 0.298],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "blue", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #1d4f9c. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-grey-gloss.json b/assets/library/materials/plastic/abs-grey-gloss.json
new file mode 100644
index 00000000..f60d5613
--- /dev/null
+++ b/assets/library/materials/plastic/abs-grey-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-grey-gloss",
+ "name": "ABS, grey gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.2577, 0.2618, 0.2693],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "grey", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #8a8c8e. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-grey-matte.json b/assets/library/materials/plastic/abs-grey-matte.json
new file mode 100644
index 00000000..8db26140
--- /dev/null
+++ b/assets/library/materials/plastic/abs-grey-matte.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-grey-matte",
+ "name": "ABS, grey matte",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.1587, 0.1617, 0.1701],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "matte", "grey", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #6e7073. Roughness 0.55 authored: fine spark-eroded mould texture, broad highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-red-gloss.json b/assets/library/materials/plastic/abs-red-gloss.json
new file mode 100644
index 00000000..f91d8dc4
--- /dev/null
+++ b/assets/library/materials/plastic/abs-red-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-red-gloss",
+ "name": "ABS, red gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.3417, 0.0463, 0.0224],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "red", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #c4161c. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-white-gloss.json b/assets/library/materials/plastic/abs-white-gloss.json
new file mode 100644
index 00000000..8e5399fd
--- /dev/null
+++ b/assets/library/materials/plastic/abs-white-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-white-gloss",
+ "name": "ABS, white gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8535, 0.8546, 0.827],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "white", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #eeeeea. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/abs-yellow-gloss.json b/assets/library/materials/plastic/abs-yellow-gloss.json
new file mode 100644
index 00000000..749752d6
--- /dev/null
+++ b/assets/library/materials/plastic/abs-yellow-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/abs-yellow-gloss",
+ "name": "ABS, yellow gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.7275, 0.5567, 0.0774],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "yellow", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f2c200. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.53: authored typical value: ABS sits between its acrylonitrile-butadiene phases (about 1.51 to 1.52) and polystyrene (1.59 measured); grades are quoted around 1.53 to 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acetal-black-satin.json b/assets/library/materials/plastic/acetal-black-satin.json
new file mode 100644
index 00000000..965e5321
--- /dev/null
+++ b/assets/library/materials/plastic/acetal-black-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acetal-black-satin",
+ "name": "Acetal, black satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.0075, 0.0075, 0.0075],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.48,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "black", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #151515. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.48: authored typical value for polyoxymethylene (quoted 1.48).",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acetal-white-satin.json b/assets/library/materials/plastic/acetal-white-satin.json
new file mode 100644
index 00000000..163dd691
--- /dev/null
+++ b/assets/library/materials/plastic/acetal-white-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acetal-white-satin",
+ "name": "Acetal, white satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8749, 0.8715, 0.8432],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.48,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "white", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f1f0ec. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.48: authored typical value for polyoxymethylene (quoted 1.48).",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acrylic-amber.json b/assets/library/materials/plastic/acrylic-amber.json
new file mode 100644
index 00000000..0483a86e
--- /dev/null
+++ b/assets/library/materials/plastic/acrylic-amber.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acrylic-amber",
+ "name": "Acrylic, amber tint",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 53.2,
+ "transmission_color": [0.5435, 0.2853, 0.0477],
+ "transmission_depth": 0.005
+ },
+ "tags": ["polymer", "transparent", "orange", "tinted", "gloss"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C5H8O2)n%20-%20poly(methyl%20methacrylate)/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4906 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. transmission_color authored as sRGB #e08a10, the colour reached through 0.005 m, a typical sheet thickness.",
+ "authored": ["specular_roughness", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acrylic-blue.json b/assets/library/materials/plastic/acrylic-blue.json
new file mode 100644
index 00000000..9a93ec3b
--- /dev/null
+++ b/assets/library/materials/plastic/acrylic-blue.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acrylic-blue",
+ "name": "Acrylic, blue tint",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 53.2,
+ "transmission_color": [0.0609, 0.082, 0.5114],
+ "transmission_depth": 0.005
+ },
+ "tags": ["polymer", "transparent", "blue", "tinted", "gloss"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C5H8O2)n%20-%20poly(methyl%20methacrylate)/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4906 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. transmission_color authored as sRGB #1a50c8, the colour reached through 0.005 m, a typical sheet thickness.",
+ "authored": ["specular_roughness", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acrylic-clear.json b/assets/library/materials/plastic/acrylic-clear.json
new file mode 100644
index 00000000..fb431d36
--- /dev/null
+++ b/assets/library/materials/plastic/acrylic-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acrylic-clear",
+ "name": "Acrylic, clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 53.2,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C5H8O2)n%20-%20poly(methyl%20methacrylate)/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4906 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acrylic-frosted.json b/assets/library/materials/plastic/acrylic-frosted.json
new file mode 100644
index 00000000..9c1cf0f5
--- /dev/null
+++ b/assets/library/materials/plastic/acrylic-frosted.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acrylic-frosted",
+ "name": "Acrylic, frosted",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 53.2,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "frosted", "translucent"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C5H8O2)n%20-%20poly(methyl%20methacrylate)/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4906 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.35 authored: optically polished sheet or moulding. Frosted: roughness 0.35 authored for a sand-blasted or acid-etched sheet.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acrylic-red.json b/assets/library/materials/plastic/acrylic-red.json
new file mode 100644
index 00000000..27c346d9
--- /dev/null
+++ b/assets/library/materials/plastic/acrylic-red.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acrylic-red",
+ "name": "Acrylic, red tint",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 53.2,
+ "transmission_color": [0.3892, 0.0492, 0.0261],
+ "transmission_depth": 0.005
+ },
+ "tags": ["polymer", "transparent", "red", "tinted", "gloss"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C5H8O2)n%20-%20poly(methyl%20methacrylate)/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4906 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. transmission_color authored as sRGB #d01020, the colour reached through 0.005 m, a typical sheet thickness.",
+ "authored": ["specular_roughness", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/acrylic-smoke.json b/assets/library/materials/plastic/acrylic-smoke.json
new file mode 100644
index 00000000..d9418cf1
--- /dev/null
+++ b/assets/library/materials/plastic/acrylic-smoke.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/acrylic-smoke",
+ "name": "Acrylic, smoke grey",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.4906,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 53.2,
+ "transmission_color": [0.1022, 0.1022, 0.1022],
+ "transmission_depth": 0.005
+ },
+ "tags": ["polymer", "transparent", "grey", "tinted", "gloss"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C5H8O2)n%20-%20poly(methyl%20methacrylate)/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4906 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. transmission_color authored as sRGB #5a5a5a, the colour reached through 0.005 m, a typical sheet thickness.",
+ "authored": ["specular_roughness", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/cellulose-acetate-clear.json b/assets/library/materials/plastic/cellulose-acetate-clear.json
new file mode 100644
index 00000000..53d9e441
--- /dev/null
+++ b/assets/library/materials/plastic/cellulose-acetate-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/cellulose-acetate-clear",
+ "name": "Cellulose acetate, clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.4701,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 54.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "apparel"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4701 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. Index from measured cellulose, the backbone of cellulose acetate film and spectacle frames.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/cr39-clear.json b/assets/library/materials/plastic/cr39-clear.json
new file mode 100644
index 00000000..ff30aa69
--- /dev/null
+++ b/assets/library/materials/plastic/cr39-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/cr39-clear",
+ "name": "CR-39 lens resin, clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.498,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 58.0,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "optics"],
+ "source": {
+ "kind": "published",
+ "reference": "CR-39 Product Bulletin - PPG Industries (2006); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/other/commercial%20polymers/CR-39/nk/poly.yml"],
+ "notes": "Transparent plastic. specular_ior 1.498 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. CR-39 data gives only n at 589.3 nm; the Abbe number 58 is authored from lens makers' commonly quoted value for CR-39.",
+ "authored": ["specular_roughness", "transmission_dispersion_abbe_number"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/hdpe-natural.json b/assets/library/materials/plastic/hdpe-natural.json
new file mode 100644
index 00000000..ec3e7807
--- /dev/null
+++ b/assets/library/materials/plastic/hdpe-natural.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/hdpe-natural",
+ "name": "HDPE, natural translucent",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.9119, 0.905, 0.8477],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.54,
+ "subsurface_weight": 1.0,
+ "subsurface_color": [0.9119, 0.905, 0.8477],
+ "subsurface_radius": 0.003,
+ "subsurface_radius_scale": [1.0, 1.0, 0.9]
+ },
+ "tags": ["polymer", "satin", "white", "translucent", "subsurface", "packaging"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Unpigmented semicrystalline polyolefin: light scatters in the crystallites, so it glows milky. Modelled with subsurface: colour sRGB #f6f4ec, mean free path 3 mm (authored so a 2 mm wall looks translucent but not clear), slightly shorter in blue. Roughness 0.35 authored. specular_ior 1.54: authored typical value for high-density polyethylene, whose crystalline fraction raises n from the amorphous 1.49 to about 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "subsurface_color", "subsurface_radius", "subsurface_radius_scale"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/hdpe-white-matte.json b/assets/library/materials/plastic/hdpe-white-matte.json
new file mode 100644
index 00000000..dd86e65b
--- /dev/null
+++ b/assets/library/materials/plastic/hdpe-white-matte.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/hdpe-white-matte",
+ "name": "HDPE, white matte",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8915, 0.8881, 0.8595],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.54,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "matte", "white", "opaque", "packaging"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f3f2ee. Roughness 0.55 authored: fine spark-eroded mould texture, broad highlight. specular_ior 1.54: authored typical value for high-density polyethylene, whose crystalline fraction raises n from the amorphous 1.49 to about 1.54.",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/nylon-black-matte.json b/assets/library/materials/plastic/nylon-black-matte.json
new file mode 100644
index 00000000..2bc6fcbf
--- /dev/null
+++ b/assets/library/materials/plastic/nylon-black-matte.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/nylon-black-matte",
+ "name": "Nylon, black matte",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.0103, 0.0103, 0.0103],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "matte", "black", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #1a1a1a. Roughness 0.55 authored: fine spark-eroded mould texture, broad highlight. specular_ior 1.53: authored typical value for polyamide 6 (quoted 1.52 to 1.54).",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/nylon-natural-matte.json b/assets/library/materials/plastic/nylon-natural-matte.json
new file mode 100644
index 00000000..d155d734
--- /dev/null
+++ b/assets/library/materials/plastic/nylon-natural-matte.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/nylon-natural-matte",
+ "name": "Nylon, natural matte",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.7678, 0.747, 0.6407],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.53,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "matte", "white", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #e6e0cf. Roughness 0.55 authored: fine spark-eroded mould texture, broad highlight. specular_ior 1.53: authored typical value for polyamide 6 (quoted 1.52 to 1.54).",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pdms-clear.json b/assets/library/materials/plastic/pdms-clear.json
new file mode 100644
index 00000000..156b0afd
--- /dev/null
+++ b/assets/library/materials/plastic/pdms-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pdms-clear",
+ "name": "Silicone (PDMS), clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.02,
+ "specular_ior": 1.4316,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 44.6,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "elastomer"],
+ "source": {
+ "kind": "published",
+ "reference": "F. Schneider, J. Draheim, R. Kamberger, U. Wallrabe. Process and material properties of polydimethylsiloxane (PDMS) for Optical MEMS. Sens. Actuators A Phys. 151, 95-99 (2009); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C2H6OSi)n%20-%20polydimethylsiloxane/nk/Schneider-Sylgard184.yml"],
+ "notes": "Transparent plastic. specular_ior 1.4316 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.02 authored: optically polished sheet or moulding. Measured Sylgard 184 polydimethylsiloxane, the common clear casting silicone.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pet-amber.json b/assets/library/materials/plastic/pet-amber.json
new file mode 100644
index 00000000..7fe10f81
--- /dev/null
+++ b/assets/library/materials/plastic/pet-amber.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pet-amber",
+ "name": "PET, amber bottle tint",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.5693,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 27.9,
+ "transmission_color": [0.3118, 0.1524, 0.0336],
+ "transmission_depth": 0.0005
+ },
+ "tags": ["polymer", "transparent", "brown", "tinted", "packaging"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Transparent plastic. specular_ior 1.5693 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. transmission_color authored as sRGB #b0661c, the colour reached through 0.0005 m, a typical sheet thickness.",
+ "authored": ["specular_roughness", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pet-clear.json b/assets/library/materials/plastic/pet-clear.json
new file mode 100644
index 00000000..b3b6796c
--- /dev/null
+++ b/assets/library/materials/plastic/pet-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pet-clear",
+ "name": "PET, clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.5693,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 27.9,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "packaging"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Transparent plastic. specular_ior 1.5693 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pet-green.json b/assets/library/materials/plastic/pet-green.json
new file mode 100644
index 00000000..d071c173
--- /dev/null
+++ b/assets/library/materials/plastic/pet-green.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pet-green",
+ "name": "PET, green bottle tint",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.5693,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 27.9,
+ "transmission_color": [0.2207, 0.3978, 0.1741],
+ "transmission_depth": 0.0005
+ },
+ "tags": ["polymer", "transparent", "green", "tinted", "packaging"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C10H8O4)n%20-%20polyethylene%20terephthalate/nk/Zhang.yml"],
+ "notes": "Transparent plastic. specular_ior 1.5693 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding. transmission_color authored as sRGB #5fae6a, the colour reached through 0.0005 m, a typical sheet thickness.",
+ "authored": ["specular_roughness", "transmission_color", "transmission_depth"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pla-orange-satin.json b/assets/library/materials/plastic/pla-orange-satin.json
new file mode 100644
index 00000000..003b1147
--- /dev/null
+++ b/assets/library/materials/plastic/pla-orange-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pla-orange-satin",
+ "name": "PLA, orange satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.6008, 0.2396, 0.0483],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.4589,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "orange", "opaque", "industrial"],
+ "source": {
+ "kind": "published",
+ "reference": "I. Bodurov, I. Vlaeva, A. Viraneva, T. Yovcheva, S. Sainov. Modified design of a laser refractometer. Nanosci. Nanotechnol. 16, 31-33 (2016); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C3H4O2)n%20-%20polylactic%20acid/nk/Bodurov.yml"],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f07a1a. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.4589 is the measured n at 587.6 nm.",
+ "authored": ["base_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pla-white-satin.json b/assets/library/materials/plastic/pla-white-satin.json
new file mode 100644
index 00000000..106f4a9b
--- /dev/null
+++ b/assets/library/materials/plastic/pla-white-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pla-white-satin",
+ "name": "PLA, white satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8995, 0.8963, 0.8605],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.4589,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "white", "opaque", "industrial"],
+ "source": {
+ "kind": "published",
+ "reference": "I. Bodurov, I. Vlaeva, A. Viraneva, T. Yovcheva, S. Sainov. Modified design of a laser refractometer. Nanosci. Nanotechnol. 16, 31-33 (2016); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C3H4O2)n%20-%20polylactic%20acid/nk/Bodurov.yml"],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f4f3ee. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.4589 is the measured n at 587.6 nm.",
+ "authored": ["base_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/polycarbonate-clear.json b/assets/library/materials/plastic/polycarbonate-clear.json
new file mode 100644
index 00000000..d9d9f647
--- /dev/null
+++ b/assets/library/materials/plastic/polycarbonate-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/polycarbonate-clear",
+ "name": "Polycarbonate, clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.5848,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 27.9,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "electronics"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C16H14O3)n%20-%20polycarbonate/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.5848 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/polycarbonate-frosted.json b/assets/library/materials/plastic/polycarbonate-frosted.json
new file mode 100644
index 00000000..80981498
--- /dev/null
+++ b/assets/library/materials/plastic/polycarbonate-frosted.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/polycarbonate-frosted",
+ "name": "Polycarbonate, frosted",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.5848,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 27.9,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "frosted", "translucent", "lighting"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C16H14O3)n%20-%20polycarbonate/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.5848 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.3 authored: optically polished sheet or moulding. Frosted: roughness 0.3 authored for a textured diffuser moulding.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/polypropylene-black-satin.json b/assets/library/materials/plastic/polypropylene-black-satin.json
new file mode 100644
index 00000000..745421e8
--- /dev/null
+++ b/assets/library/materials/plastic/polypropylene-black-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/polypropylene-black-satin",
+ "name": "Polypropylene, black satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.0086, 0.0086, 0.0086],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.49,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "black", "opaque", "automotive"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #171717. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.49: authored typical value for isotactic polypropylene (quoted 1.47 to 1.50).",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/polypropylene-natural.json b/assets/library/materials/plastic/polypropylene-natural.json
new file mode 100644
index 00000000..ce148386
--- /dev/null
+++ b/assets/library/materials/plastic/polypropylene-natural.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/polypropylene-natural",
+ "name": "Polypropylene, natural translucent",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8908, 0.8802, 0.8033],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.49,
+ "subsurface_weight": 1.0,
+ "subsurface_color": [0.8908, 0.8802, 0.8033],
+ "subsurface_radius": 0.003,
+ "subsurface_radius_scale": [1.0, 1.0, 0.9]
+ },
+ "tags": ["polymer", "satin", "white", "translucent", "subsurface", "packaging"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Unpigmented semicrystalline polyolefin: light scatters in the crystallites, so it glows milky. Modelled with subsurface: colour sRGB #f4f1e6, mean free path 3 mm (authored so a 2 mm wall looks translucent but not clear), slightly shorter in blue. Roughness 0.35 authored. specular_ior 1.49: authored typical value for isotactic polypropylene (quoted 1.47 to 1.50).",
+ "authored": ["base_color", "specular_roughness", "specular_ior", "subsurface_color", "subsurface_radius", "subsurface_radius_scale"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/polypropylene-white-satin.json b/assets/library/materials/plastic/polypropylene-white-satin.json
new file mode 100644
index 00000000..3b5a314c
--- /dev/null
+++ b/assets/library/materials/plastic/polypropylene-white-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/polypropylene-white-satin",
+ "name": "Polypropylene, white satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8659, 0.8631, 0.8213],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.49,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "white", "opaque", "packaging"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f0efe9. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.49: authored typical value for isotactic polypropylene (quoted 1.47 to 1.50).",
+ "authored": ["base_color", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/polystyrene-clear.json b/assets/library/materials/plastic/polystyrene-clear.json
new file mode 100644
index 00000000..de1d81c4
--- /dev/null
+++ b/assets/library/materials/plastic/polystyrene-clear.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/polystyrene-clear",
+ "name": "Polystyrene, clear",
+ "category": "Plastic",
+ "type": "plastic_clear",
+ "params": {
+ "base_color": [1.0, 1.0, 1.0],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.01,
+ "specular_ior": 1.5916,
+ "transmission_weight": 1.0,
+ "transmission_dispersion_scale": 0.0,
+ "transmission_dispersion_abbe_number": 29.5,
+ "transmission_color": [1.0, 1.0, 1.0],
+ "transmission_depth": 0.0
+ },
+ "tags": ["polymer", "transparent", "clear", "gloss", "packaging"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C8H8)n%20-%20polystyrene/nk/Sultanova.yml"],
+ "notes": "Transparent plastic. specular_ior 1.5916 is the measured n at 587.6 nm; the Abbe number is (nd - 1)/(nF - nC) from the same data, stored with dispersion off (scale 0) since plastics show little fire; turn the scale to 1 for optics. Roughness 0.01 authored: optically polished sheet or moulding.",
+ "authored": ["specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pvc-grey-satin.json b/assets/library/materials/plastic/pvc-grey-satin.json
new file mode 100644
index 00000000..69bf85f5
--- /dev/null
+++ b/assets/library/materials/plastic/pvc-grey-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pvc-grey-satin",
+ "name": "PVC, grey satin",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.27, 0.2742, 0.2819],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.3,
+ "specular_ior": 1.5425,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "satin", "grey", "opaque", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C2H3Cl)n%20-%20polyvinyl%20chloride/nk/Zhang.yml"],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #8d8f91. Roughness 0.3 authored: lightly textured mould, soft highlight. specular_ior 1.5425 is the measured n at 587.6 nm.",
+ "authored": ["base_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/plastic/pvc-white-gloss.json b/assets/library/materials/plastic/pvc-white-gloss.json
new file mode 100644
index 00000000..9f30c21c
--- /dev/null
+++ b/assets/library/materials/plastic/pvc-white-gloss.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "plastic/pvc-white-gloss",
+ "name": "PVC, white gloss",
+ "category": "Plastic",
+ "type": "plastic",
+ "params": {
+ "base_color": [0.8867, 0.8876, 0.8664],
+ "base_metalness": 0.0,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.5425,
+ "transmission_weight": 0.0,
+ "coat_weight": 0.0
+ },
+ "tags": ["polymer", "gloss", "white", "opaque", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "X. Zhang, J. Qiu, X. Li, J. Zhao, L. Liu. Complex refractive indices measurements of polymers in visible and near-infrared bands. Appl. Opt. 59, 2337-2344 (2020) (0.4-2 µm); X. Zhang, J. Qiu, J. Zhao, X. Li, L. Liu. Complex refractive indices measurements of polymers in infrared bands. J. Quant. Spectrosc. Radiat. Transf. 252, 107063 (2020) (2-20 µm); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C2H3Cl)n%20-%20polyvinyl%20chloride/nk/Zhang.yml"],
+ "notes": "Opaque pigmented plastic. base_color authored as sRGB #f2f2ef. Roughness 0.08 authored: polished mould, sharp highlight. specular_ior 1.5425 is the measured n at 587.6 nm.",
+ "authored": ["base_color", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/black-rubber-matte.json b/assets/library/materials/rubber/black-rubber-matte.json
new file mode 100644
index 00000000..ec1b03cc
--- /dev/null
+++ b/assets/library/materials/rubber/black-rubber-matte.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/black-rubber-matte",
+ "name": "Black rubber, matte",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.006, 0.006, 0.006],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.7,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "matte", "black", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Moulded black rubber with a dull bloom. base_color authored as sRGB #121212; specular roughness 0.7 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/black-rubber-satin.json b/assets/library/materials/rubber/black-rubber-satin.json
new file mode 100644
index 00000000..3fdd35a6
--- /dev/null
+++ b/assets/library/materials/rubber/black-rubber-satin.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/black-rubber-satin",
+ "name": "Black rubber, satin",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.006, 0.006, 0.006],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "satin", "black", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Freshly moulded or dressed black rubber. base_color authored as sRGB #121212; specular roughness 0.4 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/epdm-grey.json b/assets/library/materials/rubber/epdm-grey.json
new file mode 100644
index 00000000..38aab0cf
--- /dev/null
+++ b/assets/library/materials/rubber/epdm-grey.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/epdm-grey",
+ "name": "EPDM rubber, grey",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.1127, 0.1165, 0.1236],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.6,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "matte", "grey", "opaque", "architectural"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Light-grey EPDM seal or gasket. base_color authored as sRGB #5d6063; specular roughness 0.6 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/gum-rubber-natural.json b/assets/library/materials/rubber/gum-rubber-natural.json
new file mode 100644
index 00000000..d1eff10e
--- /dev/null
+++ b/assets/library/materials/rubber/gum-rubber-natural.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/gum-rubber-natural",
+ "name": "Gum rubber, natural",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.3872, 0.2679, 0.1007],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.5,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "matte", "brown", "opaque", "apparel"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Unfilled natural crepe or gum rubber, as on shoe soles. base_color authored as sRGB #b98a4c; specular roughness 0.5 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/nitrile-blue.json b/assets/library/materials/rubber/nitrile-blue.json
new file mode 100644
index 00000000..23c8b1f1
--- /dev/null
+++ b/assets/library/materials/rubber/nitrile-blue.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/nitrile-blue",
+ "name": "Nitrile rubber, blue",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.1098, 0.1571, 0.5669],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.5,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "matte", "blue", "opaque", "industrial"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Blue-dyed nitrile, as in gloves and O-rings. base_color authored as sRGB #3a6fd0; specular roughness 0.5 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/silicone-rubber-red.json b/assets/library/materials/rubber/silicone-rubber-red.json
new file mode 100644
index 00000000..8efda2f3
--- /dev/null
+++ b/assets/library/materials/rubber/silicone-rubber-red.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/silicone-rubber-red",
+ "name": "Silicone rubber, red",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.3343, 0.0644, 0.0342],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.4316,
+ "coat_weight": 0.0,
+ "subsurface_weight": 0.3,
+ "subsurface_color": [0.3343, 0.0644, 0.0342],
+ "subsurface_radius": 0.002
+ },
+ "tags": ["elastomer", "satin", "red", "subsurface", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "F. Schneider, J. Draheim, R. Kamberger, U. Wallrabe. Process and material properties of polydimethylsiloxane (PDMS) for Optical MEMS. Sens. Actuators A Phys. 151, 95-99 (2009); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C2H6OSi)n%20-%20polydimethylsiloxane/nk/Schneider-Sylgard184.yml"],
+ "notes": "Pigmented silicone (PDMS): specular_ior 1.4316 is the measured n of Sylgard 184 at 587.6 nm. base_color and subsurface colour authored as sRGB #c0302a; subsurface weight 0.3 and 2 mm mean free path authored for the slight translucency of moulded silicone; roughness authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "subsurface_weight", "subsurface_color", "subsurface_radius"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/silicone-rubber-white.json b/assets/library/materials/rubber/silicone-rubber-white.json
new file mode 100644
index 00000000..d1affd5c
--- /dev/null
+++ b/assets/library/materials/rubber/silicone-rubber-white.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/silicone-rubber-white",
+ "name": "Silicone rubber, white",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.8465, 0.8393, 0.7978],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.4316,
+ "coat_weight": 0.0,
+ "subsurface_weight": 0.3,
+ "subsurface_color": [0.8465, 0.8393, 0.7978],
+ "subsurface_radius": 0.002
+ },
+ "tags": ["elastomer", "satin", "white", "subsurface", "kitchen"],
+ "source": {
+ "kind": "published",
+ "reference": "F. Schneider, J. Draheim, R. Kamberger, U. Wallrabe. Process and material properties of polydimethylsiloxane (PDMS) for Optical MEMS. Sens. Actuators A Phys. 151, 95-99 (2009); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C2H6OSi)n%20-%20polydimethylsiloxane/nk/Schneider-Sylgard184.yml"],
+ "notes": "Pigmented silicone (PDMS): specular_ior 1.4316 is the measured n of Sylgard 184 at 587.6 nm. base_color and subsurface colour authored as sRGB #eeece6; subsurface weight 0.3 and 2 mm mean free path authored for the slight translucency of moulded silicone; roughness authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "subsurface_weight", "subsurface_color", "subsurface_radius"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/soft-touch-black.json b/assets/library/materials/rubber/soft-touch-black.json
new file mode 100644
index 00000000..fb4f1fde
--- /dev/null
+++ b/assets/library/materials/rubber/soft-touch-black.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/soft-touch-black",
+ "name": "Soft-touch coating, black",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.0103, 0.0103, 0.0103],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "matte", "black", "opaque", "electronics"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Elastomeric soft-touch paint on plastic housings. base_color authored as sRGB #1a1a1a; specular roughness 0.55 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/rubber/tyre-rubber.json b/assets/library/materials/rubber/tyre-rubber.json
new file mode 100644
index 00000000..048ab75b
--- /dev/null
+++ b/assets/library/materials/rubber/tyre-rubber.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "rubber/tyre-rubber",
+ "name": "Tyre rubber",
+ "category": "Rubber",
+ "type": "rubber",
+ "params": {
+ "base_color": [0.0052, 0.0052, 0.0052],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.65,
+ "specular_ior": 1.52,
+ "coat_weight": 0.0
+ },
+ "tags": ["elastomer", "matte", "black", "opaque", "automotive"],
+ "source": {
+ "kind": "authored",
+ "reference": "",
+ "urls": [],
+ "notes": "Carbon-black filled tread compound: albedo about 0.01 linear, worn surface. base_color authored as sRGB #101010; specular roughness 0.65 and diffuse roughness 0.5 authored. specular_ior 1.52 authored: the commonly quoted index of natural rubber (cis-polyisoprene) and of carbon-black filled compounds' binder.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "specular_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/concrete.json b/assets/library/materials/stone/concrete.json
new file mode 100644
index 00000000..58395884
--- /dev/null
+++ b/assets/library/materials/stone/concrete.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/concrete",
+ "name": "Concrete, smooth",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.3278, 0.3235, 0.3037],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.65,
+ "specular_ior": 1.5443,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "matte", "grey", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #9c9a95 authored as the stone's average tone; roughness 0.65 authored for the finish. specular_ior 1.5443 is the measured n of quartz (ordinary ray), concrete's aggregate at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/granite-black-polished.json b/assets/library/materials/stone/granite-black-polished.json
new file mode 100644
index 00000000..43b53e49
--- /dev/null
+++ b/assets/library/materials/stone/granite-black-polished.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/granite-black-polished",
+ "name": "Granite, black polished",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.0168, 0.0168, 0.0168],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.5443,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "polished", "black", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #232323 authored as the stone's average tone; roughness 0.08 authored for the finish. specular_ior 1.5443 is the measured n of quartz (ordinary ray) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/granite-grey-honed.json b/assets/library/materials/stone/granite-grey-honed.json
new file mode 100644
index 00000000..417aca14
--- /dev/null
+++ b/assets/library/materials/stone/granite-grey-honed.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/granite-grey-honed",
+ "name": "Granite, grey honed",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.2562, 0.2543, 0.2473],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.5443,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "satin", "grey", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #8b8a88 authored as the stone's average tone; roughness 0.35 authored for the finish. specular_ior 1.5443 is the measured n of quartz (ordinary ray) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/limestone.json b/assets/library/materials/stone/limestone.json
new file mode 100644
index 00000000..0de68d54
--- /dev/null
+++ b/assets/library/materials/stone/limestone.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/limestone",
+ "name": "Limestone, sawn",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.5949, 0.5671, 0.4524],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.6,
+ "specular_ior": 1.6585,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "matte", "white", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/CaCO3/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #cfc6b0 authored as the stone's average tone; roughness 0.6 authored for the finish. specular_ior 1.6585 is the measured n of calcite (ordinary ray) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/marble-black-polished.json b/assets/library/materials/stone/marble-black-polished.json
new file mode 100644
index 00000000..05b4f7cd
--- /dev/null
+++ b/assets/library/materials/stone/marble-black-polished.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/marble-black-polished",
+ "name": "Marble, black polished",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.0117, 0.0116, 0.0128],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.6585,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "polished", "black", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/CaCO3/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #1c1c1e authored as the stone's average tone; roughness 0.08 authored for the finish. specular_ior 1.6585 is the measured n of calcite (ordinary ray) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/marble-white-honed.json b/assets/library/materials/stone/marble-white-honed.json
new file mode 100644
index 00000000..83eac07f
--- /dev/null
+++ b/assets/library/materials/stone/marble-white-honed.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/marble-white-honed",
+ "name": "Marble, white honed",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.7799, 0.7691, 0.723],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.35,
+ "specular_ior": 1.6585,
+ "coat_weight": 0.0,
+ "subsurface_weight": 0.5,
+ "subsurface_color": [0.7799, 0.7691, 0.723],
+ "subsurface_radius": 0.005
+ },
+ "tags": ["stone", "satin", "white", "subsurface", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/CaCO3/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #e6e3dc authored as the stone's average tone; roughness 0.35 authored for the finish. specular_ior 1.6585 is the measured n of calcite (ordinary ray) at 587.6 nm. White marble is translucent: subsurface weight 0.5 with a 5 mm mean free path, authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "subsurface_weight", "subsurface_color", "subsurface_radius"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/marble-white-polished.json b/assets/library/materials/stone/marble-white-polished.json
new file mode 100644
index 00000000..d81594e7
--- /dev/null
+++ b/assets/library/materials/stone/marble-white-polished.json
@@ -0,0 +1,28 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/marble-white-polished",
+ "name": "Marble, white polished",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.8194, 0.808, 0.7671],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.08,
+ "specular_ior": 1.6585,
+ "coat_weight": 0.0,
+ "subsurface_weight": 0.5,
+ "subsurface_color": [0.8194, 0.808, 0.7671],
+ "subsurface_radius": 0.005
+ },
+ "tags": ["stone", "polished", "white", "subsurface", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/CaCO3/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #ebe8e2 authored as the stone's average tone; roughness 0.08 authored for the finish. specular_ior 1.6585 is the measured n of calcite (ordinary ray) at 587.6 nm. White marble is translucent: subsurface weight 0.5 with a 5 mm mean free path, authored.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "subsurface_weight", "subsurface_color", "subsurface_radius"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/sandstone.json b/assets/library/materials/stone/sandstone.json
new file mode 100644
index 00000000..21fb01ea
--- /dev/null
+++ b/assets/library/materials/stone/sandstone.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/sandstone",
+ "name": "Sandstone, sawn",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.4985, 0.3977, 0.2237],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.7,
+ "specular_ior": 1.5443,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "matte", "brown", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #c9a77a authored as the stone's average tone; roughness 0.7 authored for the finish. specular_ior 1.5443 is the measured n of quartz (ordinary ray) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/slate.json b/assets/library/materials/stone/slate.json
new file mode 100644
index 00000000..df58439a
--- /dev/null
+++ b/assets/library/materials/stone/slate.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/slate",
+ "name": "Slate, riven",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.0728, 0.0777, 0.089],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.55,
+ "specular_ior": 1.5443,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "matte", "grey", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/SiO2/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #4a4f55 authored as the stone's average tone; roughness 0.55 authored for the finish. specular_ior 1.5443 is the measured n of quartz (ordinary ray), slate's main mineral with micas at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/stone/travertine-honed.json b/assets/library/materials/stone/travertine-honed.json
new file mode 100644
index 00000000..18e63abf
--- /dev/null
+++ b/assets/library/materials/stone/travertine-honed.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "stone/travertine-honed",
+ "name": "Travertine, honed",
+ "category": "Stone",
+ "type": "stone",
+ "params": {
+ "base_color": [0.6226, 0.5699, 0.4163],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.5,
+ "specular_roughness": 0.4,
+ "specular_ior": 1.6585,
+ "coat_weight": 0.0
+ },
+ "tags": ["stone", "satin", "brown", "needs-graph", "architectural"],
+ "source": {
+ "kind": "published",
+ "reference": "G. Ghosh. Dispersion-equation coefficients for the refractive index and birefringence of calcite and quartz crystals. Opt. Commun. 163, 95-102 (1999); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/main/CaCO3/nk/Ghosh-o.yml"],
+ "notes": "Base settings only: veins, grains and speckle come from the type's stone graph, which this preset does not carry yet. base_color sRGB #d6c6a8 authored as the stone's average tone; roughness 0.4 authored for the finish. specular_ior 1.6585 is the measured n of calcite (ordinary ray) at 587.6 nm.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/ash-oiled.json b/assets/library/materials/wood/ash-oiled.json
new file mode 100644
index 00000000..11f7d337
--- /dev/null
+++ b/assets/library/materials/wood/ash-oiled.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/ash-oiled",
+ "name": "Ash, oiled",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.5423, 0.4648, 0.3015],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.4,
+ "coat_weight": 0.0
+ },
+ "tags": ["wood", "satin", "brown", "needs-graph", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #cdb48f authored as the species' average tone. Oil-finished wood keeps its texture: no film, roughness 0.4 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/cherry-oiled.json b/assets/library/materials/wood/cherry-oiled.json
new file mode 100644
index 00000000..f84c1816
--- /dev/null
+++ b/assets/library/materials/wood/cherry-oiled.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/cherry-oiled",
+ "name": "Cherry, oiled",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.2348, 0.1169, 0.0547],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.4,
+ "coat_weight": 0.0
+ },
+ "tags": ["wood", "satin", "red", "needs-graph", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #9a5a3a authored as the species' average tone. Oil-finished wood keeps its texture: no film, roughness 0.4 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/ebony-polished.json b/assets/library/materials/wood/ebony-polished.json
new file mode 100644
index 00000000..8fcf0e9c
--- /dev/null
+++ b/assets/library/materials/wood/ebony-polished.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/ebony-polished",
+ "name": "Ebony, polished",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.0199, 0.0157, 0.0122],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.45,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.06,
+ "coat_ior": 1.5
+ },
+ "tags": ["wood", "gloss", "black", "needs-graph", "furniture", "coat"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #2a211c authored as the species' average tone. Lacquer film as a coat with roughness 0.06 and ior 1.5 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/maple-lacquered.json b/assets/library/materials/wood/maple-lacquered.json
new file mode 100644
index 00000000..94e3f084
--- /dev/null
+++ b/assets/library/materials/wood/maple-lacquered.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/maple-lacquered",
+ "name": "Maple, lacquered",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.6597, 0.5625, 0.3569],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.45,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.06,
+ "coat_ior": 1.5
+ },
+ "tags": ["wood", "gloss", "yellow", "needs-graph", "furniture", "coat"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #e0c49a authored as the species' average tone. Lacquer film as a coat with roughness 0.06 and ior 1.5 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/oak-lacquered.json b/assets/library/materials/wood/oak-lacquered.json
new file mode 100644
index 00000000..858cdc93
--- /dev/null
+++ b/assets/library/materials/wood/oak-lacquered.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/oak-lacquered",
+ "name": "Oak, lacquered",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.3573, 0.2647, 0.1257],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.45,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.06,
+ "coat_ior": 1.5
+ },
+ "tags": ["wood", "gloss", "brown", "needs-graph", "furniture", "coat"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #b08a5a authored as the species' average tone. Lacquer film as a coat with roughness 0.06 and ior 1.5 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/oak-oiled.json b/assets/library/materials/wood/oak-oiled.json
new file mode 100644
index 00000000..a698d286
--- /dev/null
+++ b/assets/library/materials/wood/oak-oiled.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/oak-oiled",
+ "name": "Oak, oiled",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.3573, 0.2647, 0.1257],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.4,
+ "coat_weight": 0.0
+ },
+ "tags": ["wood", "satin", "brown", "needs-graph", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #b08a5a authored as the species' average tone. Oil-finished wood keeps its texture: no film, roughness 0.4 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/pine-raw.json b/assets/library/materials/wood/pine-raw.json
new file mode 100644
index 00000000..fdf74dd7
--- /dev/null
+++ b/assets/library/materials/wood/pine-raw.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/pine-raw",
+ "name": "Pine, raw",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.6693, 0.5688, 0.3231],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.65,
+ "coat_weight": 0.0
+ },
+ "tags": ["wood", "matte", "yellow", "needs-graph", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #e2c591 authored as the species' average tone. Raw sawn or sanded wood, roughness 0.65 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/teak-oiled.json b/assets/library/materials/wood/teak-oiled.json
new file mode 100644
index 00000000..6409b29b
--- /dev/null
+++ b/assets/library/materials/wood/teak-oiled.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/teak-oiled",
+ "name": "Teak, oiled",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.2492, 0.1554, 0.0618],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.4,
+ "coat_weight": 0.0
+ },
+ "tags": ["wood", "satin", "brown", "needs-graph", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #9a6a3c authored as the species' average tone. Oil-finished wood keeps its texture: no film, roughness 0.4 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/walnut-lacquered.json b/assets/library/materials/wood/walnut-lacquered.json
new file mode 100644
index 00000000..da07b0c7
--- /dev/null
+++ b/assets/library/materials/wood/walnut-lacquered.json
@@ -0,0 +1,27 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/walnut-lacquered",
+ "name": "Walnut, lacquered",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.0885, 0.0582, 0.034],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.45,
+ "coat_weight": 1.0,
+ "coat_roughness": 0.06,
+ "coat_ior": 1.5
+ },
+ "tags": ["wood", "gloss", "brown", "needs-graph", "furniture", "coat"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #5e4230 authored as the species' average tone. Lacquer film as a coat with roughness 0.06 and ior 1.5 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness", "coat_roughness", "coat_ior"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/assets/library/materials/wood/walnut-oiled.json b/assets/library/materials/wood/walnut-oiled.json
new file mode 100644
index 00000000..f2d4e090
--- /dev/null
+++ b/assets/library/materials/wood/walnut-oiled.json
@@ -0,0 +1,25 @@
+{
+ "format": "formshot-material-preset",
+ "version": 1,
+ "id": "wood/walnut-oiled",
+ "name": "Walnut, oiled",
+ "category": "Wood",
+ "type": "wood",
+ "params": {
+ "base_color": [0.0885, 0.0582, 0.034],
+ "base_metalness": 0.0,
+ "base_diffuse_roughness": 0.3,
+ "specular_ior": 1.4701,
+ "specular_roughness": 0.4,
+ "coat_weight": 0.0
+ },
+ "tags": ["wood", "satin", "brown", "needs-graph", "furniture"],
+ "source": {
+ "kind": "published",
+ "reference": "N. Sultanova, S. Kasarova, I. Nikolov. Dispersion properties of optical polymers. Acta Physica Polonica A 116, 585-587 (2009) (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy); M. N. Polyanskiy, Refractiveindex.info database of optical constants, Sci. Data 11, 94 (2024)",
+ "urls": ["https://github.com/polyanskiy/refractiveindex.info-database/blob/e6d15e364f70de1cad8a96a20f75689f2fba8b21/database/data/organic/(C6H10O5)n%20-%20cellulose/nk/Sultanova.yml"],
+ "notes": "Base settings only: grain, rays and ring contrast come from the type's wood graph, which this preset does not carry yet. base_color sRGB #5e4230 authored as the species' average tone. Oil-finished wood keeps its texture: no film, roughness 0.4 (authored). specular_ior 1.4701 is the measured n of cellulose, the main constituent of wood cell walls.",
+ "authored": ["base_color", "base_diffuse_roughness", "specular_roughness"]
+ },
+ "licence": "Apache-2.0"
+}
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index 19993a75..246223f4 100644
--- a/backend/HASHOUT_LOG.md
+++ b/backend/HASHOUT_LOG.md
@@ -1,6 +1,6 @@
# backend HASHOUT_LOG
-Living log for the service side, _v0.4.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full.
+Living log for the service side, _v0.6.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full.
## Org-navi-map
@@ -12,7 +12,7 @@ backend/
requirements.txt fastapi 0.143.0, uvicorn 0.54.0, websockets 17.2, ptyprocess 0.7.0 / pywinpty 3.0.5
requirements_macos.txt the same without the Windows terminal package
requirements_desktop.txt pyinstaller 6.16.0
- app/__init__.py __version__ = "0.4.0", the single version source
+ app/__init__.py __version__ = "0.6.0", the single version source
app/main.py the app: middleware, /api/health, /api/agent, /api/live, static frontend fallback
app/startup.py engine lock, shell watch, stand-alone refusal
app/local_guard.py Host and Origin guard
@@ -22,9 +22,15 @@ backend/
app/project_library.py the Home library on disk: projects, templates, Trash, previews, stored model, project file
app/projects.py routes over the library
app/engine.py engine bridge: Binding (fsh_py) and Process (formshot-engine dispatch --journal) transports,
- frame_bytes, mesh_bytes (FSHM v1), snapshot_bytes, journal_dir, apply_preferences
- app/engine_routes.py /api/engine/* (catalogue, dispatch, status, mesh/{key}, snapshot) and /api/render/*
+ frame_bytes, mesh_bytes (FSHM v1), snapshot_bytes, journal_dir, apply_preferences,
+ change_event, Engine.dispatch_outside (relays outside edits to the window)
+ app/engine_routes.py /api/engine/* (catalogue, dispatch, status, mesh/{key}, snapshot, texture) and /api/render/*
app/routers/mcp.py HTTP MCP endpoint /mcp over the engine catalogue
+ app/routers/imports.py /api/imports (model uploads, scan of dropped folders), the hourly .imports sweep
+ app/routers/cad.py /api/cad/worker and /worker/fetch: the CAD worker's status and its checked download; CLI main()
+ app/routers/handoff.py /api/handoff/*: watched family folders, held offers, per-app choices, inspect and open
+ app/routers/textures.py /api/textures: texture image uploads for material slots
+ app/routers/library.py /api/library/*: preset thumbnails from the engine's cache, the index, batch queueing
app/agent/ agent bus: config, events, commands, router, terminal, cmd_terminal, claude_code,
agent_programs, cmd_agents, cmd_chat, cmd_prefs, external, consent, agent_lookup
```
@@ -35,6 +41,7 @@ backend/
- [Engine bridge](#engine-bridge)
- [Projects library](#projects-library)
- [Agents, MCP and consent](#agents-mcp-and-consent)
+- [Import, CAD, hand-offs, textures and the library](#import-cad-hand-offs-textures-and-the-library)
- [Verification](#verification)
## Layout and names
@@ -117,6 +124,12 @@ Each project is a folder `/` with `project.fshot`, `info.json`, `thumb.web
- logged: v0.2.0 · 2026-12-02
FormSculpt's JSON-RPC endpoint (initialize, tools/list, tools/call, ping, prompts/list, server/discover): the tools are the engine catalogue under the same dotted names, and calls go through consent. It sits at `app/routers/mcp.py` because `setup/agents.py` looks for that path. `mcp/server.py` forwards stdio to it with `x-formshot-tab` and `x-formshot-agent`.
+### app/engine.py, app/main.py, app/routers/mcp.py · outside edits reach the window
+- refers-to: app/engine.py :: change_event, Engine.dispatch_outside, Engine.read_only; app/main.py :: /api/agent; app/routers/mcp.py :: call_tool
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+An edit made by an agent left the window's summary stale until the window's own next dispatch. Commands that arrive from outside the window client (`/api/agent` and MCP's `call_tool`) now go through `Engine.dispatch_outside(name, args, source)`, which dispatches and, for a successful command the catalogue does not mark read-only, publishes on `/api/events` `document.changed` (file.* and document.*), `selection.changed`, `history.changed` or `scene.changed` with `{source: "agent"|"mcp", command, change, revision}`; the workspace already refreshes on those. `formshot cli dispatch` runs its own engine process and so never reaches the window. Run (polish): an `/api/agent` material.create and an MCP rename appeared in the open material list, the events seen on `/api/events`.
+
### app/agent/consent.py · who may change the scene
- refers-to: app/agent/consent.py :: permit, requests; app/main.py :: /api/agent; app/settings.py :: agents
- kind: rationale
@@ -129,6 +142,62 @@ FormSculpt's JSON-RPC endpoint (initialize, tools/list, tools/call, ping, prompt
- logged: v0.2.0 · 2026-12-02
Every route other than GET, HEAD and OPTIONS needs `x-formshot-window-key`, except `/api/agent`, `/mcp` and `POST /api/window/key`. Streams and images take a `?ticket=` from `POST /api/window/ticket` (one use, 30 s). The key is claimed once per start (409 after; 404 when the shell prints it). Tab tokens are kept off the window routes.
+## Import, CAD, hand-offs, textures and the library
+
+### app/routers/imports.py · model uploads without python-multipart
+- refers-to: app/routers/imports.py :: POST /api/imports, DELETE /api/imports/{id}, POST /api/imports/scan, clean_name, receive, FIELD_LIMIT
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+A browser cannot hand the engine a path, so `POST /api/imports` streams a multipart upload to `/.imports/<16 hex id>/` and answers `{id, path, folder, name, files, bytes}`; `path` is absolute and is what the engine opens. Part `main` is the model (the first file part when none is named), parts `files` are siblings with relative names kept up to 4 folders so glTF texture URIs resolve. A small streaming parser in the router reads the body, so requirements.txt did not grow (python-multipart is not installed and FastAPI's `UploadFile` would need it). Names: NFC, control characters and `<>:"|?*` become `_`, leading dots and trailing dots or spaces dropped, 120 characters per segment with the extension kept, Windows device names prefixed with `_` (`CON.glb` is stored as `_CON.glb`), `..` refused; main must be in `project_library.MESH_SUFFIXES`, siblings a model, `.bin`, `.mtl` or image. Limits: 1 GiB per file (`MESH_LIMIT`), 2 GiB per upload, 256 files; a failed or disconnected upload removes its folder. `POST /api/imports/scan {paths}` expands desktop folder drops into model files (depth 6, 500 files). The window key is required on all three (the guard plus `window_key.require`).
+
+### app/routers/imports.py · the .imports sweep
+- refers-to: app/routers/imports.py :: sweep, sweep_forever, lifespan, KEEP_SECONDS, SWEEP_EVERY
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+An upload is kept after a successful import because the imported nodes carry `source.path` and `file.reimport` reads it again; removing it at once would break Reimport. A cancelled, failed or aborted upload is deleted at once by the window. Folders under `/.imports/` whose name is a 16-hex id, that are real directories (not links) and hold nothing modified in the last 24 hours (`KEEP_SECONDS`, the newest modified time of the folder and everything in it) are removed when the service starts and every hour after (`SWEEP_EVERY`) in a worker thread. The router's `lifespan` is merged into the app's by FastAPI's `include_router`, so main.py is untouched. After 24 hours, Reimport of such parts reports a missing source for that file, not a crash; CAD parts still retessellate from their kept source.
+
+### app/routers/cad.py, setup/cad_worker · fetching the CAD worker
+- refers-to: app/routers/cad.py :: GET /api/cad/worker, POST /api/cad/worker/fetch, RELEASE, TAG, RECORD_SHA256, BASE, load_record, target_of, host_triple, status, main
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+The engine never touches the network, so the service downloads FormCAD's kernel worker, following FormCAD's own kernel service: tag `occt-8.0.1` from `github.com/nodemode-dev/formai-binaries` releases; the record `occt-licence.json` pinned by SHA-256 (`RECORD_SHA256` 7881704...b621); its `targets[triple]`; `SHA256SUMS` must list the pinned record hash and the archive hash, and the archive is checked against it; `tarfile` with `filter="data"`; every file is checked against the record (links must match `link`) and nothing outside it is accepted; then the folder is renamed to `/formshot/workers/occt-8.0.1`. The record is cached in `workers/.records/`, `.fetch-*` scratch folders older than an hour are removed. `FORMSHOT_CAD_RELEASE_URL` points at a mirror with the same files; `FORMSHOT_CAD_RECORD` names a local record, which must still match the pin. To take a new worker release, change `RELEASE` and `RECORD_SHA256`. `GET /api/cad/worker?probe=` answers `worker` (the engine's `cad.status`, with probe passed on), `published` (tag, triple, archive, file count and bytes, or `available: false` with the reason, waiting at most 15 s for an uncached record), `installed`, `cache` and `fetch` (the job). `POST /api/cad/worker/fetch` (window key) answers 409 with a plain reason when the record has no file for this triple, else starts a thread publishing `cad.worker` events (`state`, `stage`: record, download, unpack, verify, done; `fraction`, `message`). There is no cancel route and the events carry no byte counts; the window handles both if they appear. `python -m app.routers.cad fetch|status` is the same code from the command line.
+
+### app/routers/handoff.py · watching the family's folders, held for consent
+- refers-to: app/routers/handoff.py :: GET/POST /api/handoff/apps, GET /api/handoff/offers, POST /api/handoff/offers/{id}, GET /api/handoff/available, POST /api/handoff/inspect, POST /api/handoff/open
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+Anything another program can send is held for the person's consent first, as the dock's outside-agents rule does. Sources: the GoF folder (`FORMSHOT_HANDOFF_GOF`, else `FORMSCULPT_GOF`, else `~/Formsculpt/GoF`) and FormSurface's exports (`FORMSHOT_HANDOFF_SURFACE/exports`, else `FORMSURFACE_DATA/exports`, else the `data` its service reports at `FORMSURFACE_SERVICE` or `127.0.0.1:FORMSURFACE_PORT|8766/api/health` with a 1 s timeout, cached 30 s, no proxy, else `~/FormSurface/exports`). A daemon thread started by the first `GET /offers` scans every 2 s only while the window is live (an SSE subscriber or a `GET /offers` in the last 8 s). An item counts when it is meant for FormShot (GoF target `any` or `formshot`; every FormSurface export folder) and unchanged for 1.5 s; the first scan of a place only records, so nothing old is offered. Per app: `blocked` drops (`handoff.blocked`), `allowed` opens as `add` at once (`handoff.opened` with `auto: true`), `ask` holds an offer (`handoff.offered`); a newer version of an item replaces its waiting offer. `POST /offers/{id} {answer: deny|once|always, as: add|new}`: `always` stores the app as allowed and opens its other waiting offers; a failed open puts the offer back. Choices and marks live in `/handoff.json`, not settings.json, whose `clean()` keeps known keys only. `/inspect` and `/open` are the window's own choice, with no prompt; every open publishes `document.changed` and `handoff.opened`. Outside agents reach the engine's `handoff.*` commands through MCP and its consent.
+
+### app/routers/textures.py · texture uploads
+- refers-to: app/routers/textures.py :: POST /api/textures, DELETE /api/textures/{id}
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+`POST /api/textures` (window key, multipart, one PNG, JPEG, HDR or EXR image under any file part name, `file` or `image`) stores the file at `/.textures/<16 hex id>/` and answers `{id, path, name, bytes}`; `DELETE /api/textures/{id}` removes it. It reuses `clean_name`, `receive` and `FIELD_LIMIT` from imports.py, so no python-multipart. 512 MiB per image (413, also from Content-Length before reading), an empty image 400, one image per upload, failed uploads remove their folder. At first the engine kept that absolute path, so a project depended on the `.textures` folder; since the QA pass the engine embeds the image into the project when the command naming it runs (`embed_command_path`), so the upload folder is only a staging place. Nothing sweeps `.textures` yet.
+
+### app/routers/library.py · thumbnails without holding the engine lock
+- refers-to: app/routers/library.py :: GET /api/library/thumbnail/{id}, GET /api/library/index, POST /api/library/thumbnails, bundled_library
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+`GET /thumbnail/{id}?size=128&h=` serves `image/png` straight from the engine's cache when `h` matches a cached file (`Cache-Control: public, max-age=31536000, immutable`), without asking the engine; otherwise it asks `library.thumbnail` (no wait) and polls every 150 ms for up to 60 s, so the service's engine lock is never held for a render, then answers 200, 503 with `Retry-After: 2` while rendering, 500 with the reason on failure, 404 for an unknown id, 422 for a bad size. `ETag: "-"` and `If-None-Match` give 304; without `h` it answers `no-cache`. `GET /index` passes `category`, `query` and `shelf` to `library.list`. `POST /thumbnails {ids, size}` queues a batch (window key by the guard). When frozen and `FORMSHOT_LIBRARY` is unset, `bundled_library()` finds the bundled library from `sys.executable` by the same places the engine checks and sets `FORMSHOT_LIBRARY` for the engine it starts, because the engine unpacked by PyInstaller sits in a temporary folder where "beside the program" finds nothing.
+
+### app/engine_routes.py · the document's outside texture files for the window
+- refers-to: app/engine_routes.py :: GET /api/engine/texture, TEXTURE_PATH_CHARS, TEXTURE_EMBEDDED
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+The window's own engine needs the bytes of textures that live outside the project (embedded ones come in the snapshot). `GET /api/engine/texture?path=` requires the window key (no ticket); `fshot:` paths answer 400; it answers only paths in the union of the `material.program {key}` texture lists over the `scene.summary` materials (cached by `content_revision`), so it can never be used to read an arbitrary file, else 404 ("The current document samples no texture at that path"); not a regular file 404 (the reply says plainly that the file is not there, lead commit 3e69008); above 512 MiB 413. It sends `ETag: "size-mtime_ns"`, `X-Formshot-Texture-Size`, `X-Formshot-Texture-Mtime`, `Cache-Control: no-cache`, and 304 on `If-None-Match`. The imports `stat` and `pathlib.Path` sit inside this region. An engine command listing the snapshot's textures would save one `material.program` call per material per content change. Run: an allowed path 200 with its ETag, revalidation 304, `/etc/passwd` 404, `fshot:` 400, a `..` path 404, no window key 403.
+
+### app/engine_routes.py · optional uv0 and tangent sections in the mesh block
+- refers-to: app/engine_routes.py :: mesh_block, GET /api/engine/mesh/{key}
+- kind: decision
+- logged: v0.6.0 · 2026-12-02
+`mesh_block(reply)` wraps `app.engine.mesh_bytes` (unchanged) and appends uv set 0 (2 f32 per vertex) and tangents (4 f32 per vertex) when `scene.mesh_data` gives `uv0_b64` and `tangents_b64`, signalled by bits 16 and 17 of header word 1, whose low 16 bits stay the version 1. Readers that read the prefix and ignore trailing bytes (the WebGPU mirror checks `byteLength >= need` only) keep working. The imports `base64`, `binascii` and `struct` sit inside this region (marked `noqa: E402`) so the shared import block was not touched. Checked on synthetic replies: 100 bytes with word 1 = 1; with both sections 172 bytes and word 1 = 0x30001.
+
+### (import, CAD, hand-off, texture and library routes) · verification
+- refers-to: app/routers/imports.py, cad.py, handoff.py, textures.py, library.py
+- kind: verification
+- logged: v0.6.0 · 2026-12-02
+Each against a running service from the shared venv on its own loopback port. Imports: 403 without the window key, 200 with it (glTF plus bin byte-identical on disk), 400 for a `.py` main and for `../../x.glb`, `CON.glb` stored as `_CON.glb`, 413 for a 1.1 GB file with its partial folder removed, DELETE 403, 200, 404; scan expanded a folder to three model files. Sweep: after start a 3-day-old id folder was gone, a new one and a non-id folder stayed; at +25 h the new one went too. CAD: the fetch through the service installed occt-8.0.1 (7061 files) into a fresh cache with 34 events, 403 without the key; a patched aarch64 triple got 409; wrong hash, extra file, unrecorded link, unsafe path and a changed record were refused. Hand-offs: real FormSculpt sends and FormSurface exports produced prompts in headless Chrome, Always allow opened three, a blocked app produced none, requests without the key got 403. Textures: 403, 200 with identical bytes, `file` and `image` part names, 400 for `.py`, empty, `../../evil.png`, two files and non-multipart, 413 for 600 MB, DELETE 403, 200, 404. Library: index passthrough, ETag and 304, immutable with `h`, a miss rendered in 10.4 s then 0.005 s, 404, 422, batch 403 then 200. `python -c "import app.main"` passes. Not run: `GET /api/cad/worker?probe=true` through a running service, Windows and macOS, the frozen build.
+
## Verification
### (service) · run in this workspace
diff --git a/backend/app/__init__.py b/backend/app/__init__.py
index 6a9beea8..906d362f 100644
--- a/backend/app/__init__.py
+++ b/backend/app/__init__.py
@@ -1 +1 @@
-__version__ = "0.4.0"
+__version__ = "0.6.0"
diff --git a/backend/app/engine.py b/backend/app/engine.py
index c5e8fd47..a7f81d78 100644
--- a/backend/app/engine.py
+++ b/backend/app/engine.py
@@ -10,7 +10,7 @@
import threading
from pathlib import Path
-from app.agent import config
+from app.agent import config, events
BINARY = "formshot-engine" + (".exe" if os.name == "nt" else "")
NOT_BUILT = ("The FormShot engine is not built: neither the fsh_py module nor the formshot-engine program was found. "
@@ -256,6 +256,16 @@ def apply_preferences(transport) -> list[str]:
return applied
+def change_event(name: str) -> str:
+ if name.startswith(("file.", "document.")):
+ return "document.changed"
+ if name.startswith("selection."):
+ return "selection.changed"
+ if name.startswith("history."):
+ return "history.changed"
+ return "scene.changed"
+
+
class Engine:
def __init__(self) -> None:
self.lock = threading.Lock()
@@ -312,6 +322,14 @@ def dispatch_meta(self, name: str, args: dict | None = None):
result = transport.dispatch(name, args or {})
return result, getattr(transport, "meta", None)
+ def dispatch_outside(self, name: str, args: dict | None, source: str):
+ result = self.dispatch(name, args)
+ failed = isinstance(result, dict) and result.get("ok") is False
+ if not failed and not self.read_only(name):
+ reply = result if isinstance(result, dict) else {}
+ events.publish(change_event(name), source=source, command=name, change=reply.get("change"), revision=reply.get("revision"))
+ return result
+
def read_only(self, name: str) -> bool:
try:
listed = self.catalogue()
diff --git a/backend/app/engine_routes.py b/backend/app/engine_routes.py
index 2c74365f..8b6bd182 100644
--- a/backend/app/engine_routes.py
+++ b/backend/app/engine_routes.py
@@ -67,6 +67,37 @@ async def dispatch(call: Call, response: Response):
return result
+import base64 # noqa: E402
+import binascii # noqa: E402
+import struct # noqa: E402
+
+MESH_FLAG_UV0 = 1
+MESH_FLAG_TANGENTS = 2
+MESH_SECTIONS = (("uv0_b64", MESH_FLAG_UV0, 8), ("tangents_b64", MESH_FLAG_TANGENTS, 16))
+
+
+def mesh_block(reply) -> bytes:
+ data = mesh_bytes(reply)
+ vertices = struct.unpack_from(" Response:
window_key.held_or_ticket(request)
@@ -74,7 +105,7 @@ async def mesh(key: str, request: Request) -> Response:
raise HTTPException(400, "A mesh key is a decimal number from scene.meshes")
reply = await run("scene.mesh_data", {"key": key})
try:
- data = mesh_bytes(reply)
+ data = mesh_block(reply)
except EngineError as error:
raise HTTPException(error.status, str(error)) from None
return Response(content=data, media_type="application/octet-stream", headers={"Cache-Control": "no-store"})
@@ -92,6 +123,63 @@ async def snapshot(request: Request) -> Response:
return Response(content=data, media_type="application/octet-stream", headers=headers)
+import stat
+from pathlib import Path
+
+TEXTURE_EMBEDDED = "fshot:"
+TEXTURE_LIMIT = 512 << 20
+TEXTURE_PATH_CHARS = 4096
+TEXTURE_LISTS: dict[str, Any] = {"revision": None, "paths": frozenset()}
+
+
+async def texture_paths() -> frozenset:
+ summary = await run("scene.summary", {})
+ revision = summary.get("content_revision") if isinstance(summary, dict) else None
+ if revision is not None and TEXTURE_LISTS["revision"] == revision:
+ return TEXTURE_LISTS["paths"]
+ found: set[str] = set()
+ for m in summary.get("materials") or [] if isinstance(summary, dict) else []:
+ key = m.get("key") if isinstance(m, dict) else None
+ if key is None:
+ continue
+ program = await run("material.program", {"key": key})
+ for t in program.get("textures") or [] if isinstance(program, dict) else []:
+ path = t.get("path") if isinstance(t, dict) else None
+ if isinstance(path, str) and path and not path.startswith(TEXTURE_EMBEDDED):
+ found.add(path)
+ paths = frozenset(found)
+ if revision is not None:
+ TEXTURE_LISTS.update(revision=revision, paths=paths)
+ return paths
+
+
+@router.get("/api/engine/texture")
+async def texture(request: Request, path: str = "") -> Response:
+ window_key.require(request)
+ if not path or len(path) > TEXTURE_PATH_CHARS or path.startswith(TEXTURE_EMBEDDED):
+ raise HTTPException(400, "Name a texture file path the current document uses (embedded textures travel in the snapshot)")
+ if path not in await texture_paths():
+ raise HTTPException(404, "The current document samples no texture at that path")
+ file = Path(path)
+ try:
+ info = await run_in_threadpool(file.stat)
+ except OSError:
+ raise HTTPException(404, "The texture file was not found") from None
+ if not stat.S_ISREG(info.st_mode):
+ raise HTTPException(404, "The texture path is not a file")
+ if info.st_size > TEXTURE_LIMIT:
+ raise HTTPException(413, "The texture file is larger than 512 MiB")
+ tag = f'"{info.st_size}-{info.st_mtime_ns}"'
+ headers = {"Cache-Control": "no-cache", "ETag": tag, "X-Formshot-Texture-Size": str(info.st_size), "X-Formshot-Texture-Mtime": str(info.st_mtime_ns)}
+ if request.headers.get("if-none-match") == tag:
+ return Response(status_code=304, headers=headers)
+ try:
+ data = await run_in_threadpool(file.read_bytes)
+ except OSError:
+ raise HTTPException(404, "The texture file could not be read") from None
+ return Response(content=data, media_type="application/octet-stream", headers=headers)
+
+
@router.post("/api/render/start")
async def render_start(request: Request):
return await run("render.start", await body_object(request))
diff --git a/backend/app/main.py b/backend/app/main.py
index c2b8ae4d..509a4ddc 100644
--- a/backend/app/main.py
+++ b/backend/app/main.py
@@ -14,7 +14,7 @@
from app.agent import router as agent_router
from app.engine import EngineError, EngineUnavailable, engine
from app.local_guard import LocalGuard
-from app.routers import mcp
+from app.routers import cad, handoff, imports, library, mcp, textures
mimetypes.add_type("text/javascript", ".js")
mimetypes.add_type("text/javascript", ".mjs")
@@ -45,6 +45,11 @@ async def lifespan(app):
app.include_router(window_key.router)
app.include_router(notices.router)
app.include_router(mcp.router)
+app.include_router(imports.router)
+app.include_router(cad.router)
+app.include_router(handoff.router)
+app.include_router(library.router)
+app.include_router(textures.router)
@app.middleware("http")
@@ -147,7 +152,7 @@ async def agent(request: Request):
if target == WINDOW:
return {"command": command, "result": await relay.send(command, args, timeout)}
try:
- result = await run_in_threadpool(engine.dispatch, command, args)
+ result = await run_in_threadpool(engine.dispatch_outside, command, args, "agent")
except EngineUnavailable as error:
raise HTTPException(503, str(error)) from None
except EngineError as error:
diff --git a/backend/app/routers/cad.py b/backend/app/routers/cad.py
new file mode 100644
index 00000000..64c3a496
--- /dev/null
+++ b/backend/app/routers/cad.py
@@ -0,0 +1,419 @@
+"""FormCAD's kernel worker: whether it is here, and fetching it from formai-binaries (0.5.0)."""
+
+import hashlib
+import json
+import os
+import platform
+import shutil
+import sys
+import tarfile
+import tempfile
+import threading
+import time
+import urllib.error
+import urllib.request
+from pathlib import Path
+
+from fastapi import APIRouter, HTTPException, Request
+from starlette.concurrency import run_in_threadpool
+
+from app import window_key
+
+PROGRAM = "formcad-kernel"
+RELEASE = "8.0.1"
+TAG = f"occt-{RELEASE}"
+RECORD_NAME = "occt-licence.json"
+RECORD_SHA256 = "78817041308252ee544019c8f73e9663db8249975e08a1a5dacb4a85eaa0b621"
+SUMS_NAME = "SHA256SUMS"
+PROTOCOL = 2
+BASE = "https://github.com/nodemode-dev/formai-binaries/releases/download"
+AGENT = "formshot-cad-fetch"
+CHUNK = 1 << 20
+
+router = APIRouter(prefix="/api/cad", tags=["cad"])
+
+_lock = threading.Lock()
+_job = {"state": "idle", "stage": "", "fraction": 0.0, "message": "", "tag": TAG}
+
+
+class FetchError(RuntimeError):
+ pass
+
+
+def host_triple() -> str:
+ machine = platform.machine().lower()
+ arch = "aarch64" if machine in ("arm64", "aarch64") else "x86_64" if machine in ("x86_64", "amd64") else machine
+ if sys.platform == "darwin":
+ return f"{arch}-apple-darwin"
+ if sys.platform.startswith("win"):
+ return f"{arch}-pc-windows-msvc"
+ return f"{arch}-unknown-linux-gnu"
+
+
+def exe_name() -> str:
+ return PROGRAM + (".exe" if sys.platform.startswith("win") else "")
+
+
+def cache_dir() -> Path:
+ override = os.environ.get("FORMSHOT_CACHE", "").strip()
+ if override:
+ return Path(override).expanduser()
+ if sys.platform == "darwin":
+ return Path.home() / "Library" / "Caches"
+ if sys.platform.startswith("win"):
+ return Path(os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local")
+ xdg = os.environ.get("XDG_CACHE_HOME", "").strip()
+ return Path(xdg) if xdg and Path(xdg).is_absolute() else Path.home() / ".cache"
+
+
+def workers_dir() -> Path:
+ return cache_dir() / "formshot" / "workers"
+
+
+def release_base() -> str:
+ return (os.environ.get("FORMSHOT_CAD_RELEASE_URL", "").strip() or f"{BASE}/{TAG}").rstrip("/")
+
+
+def sha256_file(path: Path) -> str:
+ digest = hashlib.sha256()
+ with path.open("rb") as handle:
+ for block in iter(lambda: handle.read(CHUNK), b""):
+ digest.update(block)
+ return digest.hexdigest()
+
+
+def download(url: str, target: Path | None, progress=None, timeout: float = 60.0) -> tuple[bytes | None, str]:
+ request = urllib.request.Request(url, headers={"User-Agent": AGENT})
+ digest = hashlib.sha256()
+ held = bytearray()
+ try:
+ with urllib.request.urlopen(request, timeout=timeout) as response:
+ total = int(response.headers.get("content-length") or 0)
+ done = 0
+ handle = target.open("wb") if target is not None else None
+ try:
+ while True:
+ block = response.read(CHUNK)
+ if not block:
+ break
+ digest.update(block)
+ done += len(block)
+ if handle is not None:
+ handle.write(block)
+ else:
+ held.extend(block)
+ if progress is not None:
+ progress(done, total)
+ finally:
+ if handle is not None:
+ handle.close()
+ except urllib.error.HTTPError as error:
+ raise FetchError(f"{url} answered {error.code}.") from None
+ except (urllib.error.URLError, OSError, ValueError) as error:
+ raise FetchError(f"{url} could not be downloaded ({getattr(error, 'reason', error)}).") from None
+ return (None if target is not None else bytes(held)), digest.hexdigest()
+
+
+def record_cache() -> Path:
+ return workers_dir() / ".records" / f"{TAG}.json"
+
+
+def parse_record(raw: bytes, where: str) -> dict:
+ found = hashlib.sha256(raw).hexdigest()
+ if found != RECORD_SHA256:
+ raise FetchError(f"The record from {where} does not match the SHA-256 this FormShot pins for {TAG}. Nothing was installed.")
+ try:
+ record = json.loads(raw.decode("utf-8"))
+ except (UnicodeDecodeError, ValueError):
+ raise FetchError(f"The record from {where} is not JSON.") from None
+ if not isinstance(record, dict) or record.get("program") != PROGRAM or str(record.get("release")) != RELEASE:
+ raise FetchError(f"The record from {where} is not the {PROGRAM} {RELEASE} record.")
+ return record
+
+
+def load_record(allow_network: bool = True, timeout: float = 60.0) -> dict:
+ local = os.environ.get("FORMSHOT_CAD_RECORD", "").strip()
+ if local:
+ try:
+ return parse_record(Path(local).read_bytes(), local)
+ except OSError as error:
+ raise FetchError(f"The record {local} could not be read ({error}).") from None
+ cached = record_cache()
+ if cached.is_file():
+ try:
+ return parse_record(cached.read_bytes(), str(cached))
+ except (OSError, FetchError):
+ pass
+ if not allow_network:
+ raise FetchError("The published record has not been downloaded yet.")
+ url = f"{release_base()}/{RECORD_NAME}"
+ raw, _ = download(url, None, timeout=timeout)
+ record = parse_record(raw or b"", url)
+ try:
+ cached.parent.mkdir(parents=True, exist_ok=True)
+ tmp = cached.with_suffix(".tmp")
+ tmp.write_bytes(raw or b"")
+ os.replace(tmp, cached)
+ except OSError:
+ pass
+ return record
+
+
+def target_of(record: dict, triple: str) -> dict:
+ target = (record.get("targets") or {}).get(triple)
+ if not isinstance(target, dict) or not target.get("files") or not target.get("archive") or not target.get("folder"):
+ have = ", ".join(sorted((record.get("targets") or {}).keys())) or "none"
+ raise FetchError(f"The published record for {TAG} has no worker for this computer ({triple}); it has {have}. Nothing was downloaded.")
+ return target
+
+
+def published(allow_network: bool = True) -> dict:
+ triple = host_triple()
+ out = {"tag": TAG, "release": RELEASE, "triple": triple, "source": release_base()}
+ try:
+ target = target_of(load_record(allow_network, timeout=15.0), triple)
+ except FetchError as error:
+ out.update(available=False, reason=str(error))
+ return out
+ files = target.get("files") or []
+ out.update(
+ available=True,
+ archive=target.get("archive"),
+ folder=target.get("folder"),
+ program=(target.get("programs") or [exe_name()])[0],
+ protocol=target.get("protocol"),
+ files=len(files),
+ bytes=sum(int(f.get("bytes") or 0) for f in files),
+ minimum_os=target.get("minimum_os"),
+ )
+ return out
+
+
+def archive_sha256(sums: bytes, archive: str) -> str:
+ want = None
+ record_line = None
+ for line in sums.decode("utf-8", "replace").splitlines():
+ parts = line.strip().split()
+ if len(parts) != 2:
+ continue
+ digest, name = parts[0].lower(), parts[1].lstrip("*")
+ if name == archive:
+ want = digest
+ elif name == RECORD_NAME:
+ record_line = digest
+ if record_line != RECORD_SHA256:
+ raise FetchError(f"{SUMS_NAME} of {TAG} does not list the pinned record. Nothing was installed.")
+ if not want:
+ raise FetchError(f"{SUMS_NAME} of {TAG} does not list {archive}. Nothing was installed.")
+ return want
+
+
+def inside(root: Path, path: Path) -> bool:
+ try:
+ path.resolve().relative_to(root.resolve())
+ return True
+ except (OSError, ValueError):
+ return False
+
+
+def verify_tree(root: Path, target: dict, progress=None) -> None:
+ files = target.get("files") or []
+ expected = {}
+ for entry in files:
+ rel = str(entry.get("path") or "")
+ if not rel or rel.startswith("/") or ".." in Path(rel).parts:
+ raise FetchError(f"The record names an unsafe path {rel!r}. Nothing was installed.")
+ expected[rel] = entry
+ present = {p.relative_to(root).as_posix() for p in root.rglob("*") if p.is_file() or p.is_symlink()}
+ for rel in present:
+ if rel not in expected:
+ raise FetchError(f"{rel} is in the download but not in the record. Nothing was installed.")
+ for i, (rel, entry) in enumerate(expected.items()):
+ path = root / rel
+ if rel not in present or not path.is_file():
+ raise FetchError(f"{rel} is missing from the download. Nothing was installed.")
+ link = entry.get("link")
+ if link:
+ if not path.is_symlink() or os.readlink(path) != link or not inside(root, path):
+ raise FetchError(f"{rel} is not the link the record describes. Nothing was installed.")
+ elif path.is_symlink():
+ raise FetchError(f"{rel} is a link the record does not describe. Nothing was installed.")
+ if sha256_file(path) != str(entry.get("sha256") or "").lower():
+ raise FetchError(f"{rel} does not match the SHA-256 in the record. Nothing was installed.")
+ if progress is not None and i % 50 == 0:
+ progress(i, len(expected))
+
+
+def install(report=print) -> Path:
+ triple = host_triple()
+ report("record", 0.0, f"Reading the published record for {TAG}.")
+ record = load_record()
+ target = target_of(record, triple)
+ if int(target.get("protocol") or 0) != PROTOCOL:
+ raise FetchError(f"The published worker speaks protocol {target.get('protocol')}; this FormShot speaks {PROTOCOL}. Nothing was installed.")
+ archive = str(target["archive"])
+ folder = str(target["folder"])
+ if "/" in archive or "/" in folder or folder in ("", ".", ".."):
+ raise FetchError("The record names an unsafe archive or folder. Nothing was installed.")
+ sums, _ = download(f"{release_base()}/{SUMS_NAME}", None)
+ want = archive_sha256(sums or b"", archive)
+ root = workers_dir()
+ root.mkdir(parents=True, exist_ok=True)
+ for stale in root.glob(".fetch-*"):
+ if stale.is_dir() and time.time() - stale.stat().st_mtime > 3600:
+ shutil.rmtree(stale, ignore_errors=True)
+ work = Path(tempfile.mkdtemp(prefix=".fetch-", dir=root))
+ try:
+ bundle = work / archive
+ report("download", 0.0, f"Downloading {archive}.")
+ _, got = download(f"{release_base()}/{archive}", bundle, lambda done, total: report("download", done / total if total else 0.0, f"Downloading {archive}."), timeout=120.0)
+ if got != want:
+ raise FetchError(f"{archive} does not match its SHA-256 in {SUMS_NAME}. Nothing was installed.")
+ report("unpack", 0.0, "Unpacking.")
+ unpacked = work / "u"
+ unpacked.mkdir()
+ try:
+ with tarfile.open(bundle) as tar:
+ tar.extractall(unpacked, filter="data")
+ except (tarfile.TarError, OSError) as error:
+ raise FetchError(f"{archive} could not be unpacked ({error}). Nothing was installed.") from None
+ bundle.unlink()
+ tree = unpacked / folder
+ if not tree.is_dir():
+ raise FetchError(f"{archive} does not hold the folder {folder}. Nothing was installed.")
+ report("verify", 0.0, "Checking every file against the record.")
+ verify_tree(tree, target, lambda i, n: report("verify", i / n if n else 1.0, "Checking every file against the record."))
+ program = tree / str((target.get("programs") or [exe_name()])[0])
+ if not program.is_file():
+ raise FetchError(f"{program.name} is not in the download. Nothing was installed.")
+ if not sys.platform.startswith("win"):
+ program.chmod(0o755)
+ destination = root / TAG
+ if destination.exists():
+ os.replace(destination, work / "old")
+ os.replace(tree, destination)
+ finally:
+ shutil.rmtree(work, ignore_errors=True)
+ report("done", 1.0, f"{TAG} is installed in {destination}.")
+ return destination
+
+
+def installed() -> list[dict]:
+ root = workers_dir()
+ out = []
+ if root.is_dir():
+ for folder in sorted(p for p in root.iterdir() if p.is_dir() and not p.name.startswith(".")):
+ program = folder / exe_name()
+ if program.is_file():
+ out.append({"tag": folder.name, "path": str(program)})
+ return out
+
+
+def _set(state: str, stage: str, fraction: float, message: str) -> None:
+ with _lock:
+ _job.update(state=state, stage=stage, fraction=round(max(0.0, min(1.0, fraction)), 4), message=message, at=time.time())
+ snapshot = dict(_job)
+ try:
+ from app.agent import events
+
+ events.publish("cad.worker", **snapshot)
+ except Exception:
+ pass
+
+
+def _run() -> None:
+ last = {"at": 0.0, "stage": ""}
+
+ def report(stage: str, fraction: float, message: str) -> None:
+ now = time.monotonic()
+ if stage != last["stage"] or now - last["at"] > 0.25 or fraction >= 1.0:
+ last.update(at=now, stage=stage)
+ _set("running" if stage != "done" else "done", stage, fraction, message)
+
+ try:
+ install(report)
+ except FetchError as error:
+ _set("failed", "", 0.0, str(error))
+ except Exception as error:
+ _set("failed", "", 0.0, f"The worker could not be installed ({error}). Nothing was installed.")
+
+
+def engine_status(probe: bool = False) -> dict:
+ try:
+ from app.engine import EngineError, EngineUnavailable, engine
+
+ try:
+ return engine.dispatch("cad.status", {"probe": True} if probe else {})
+ except (EngineError, EngineUnavailable) as error:
+ return {"available": False, "reason": f"The engine could not be asked ({error})."}
+ except Exception as error:
+ return {"available": False, "reason": f"The engine could not be asked ({error})."}
+
+
+def status(allow_network: bool = True, probe: bool = False) -> dict:
+ with _lock:
+ job = dict(_job)
+ return {
+ "worker": engine_status(probe),
+ "published": published(allow_network),
+ "installed": installed(),
+ "cache": str(workers_dir()),
+ "fetch": job,
+ }
+
+
+@router.get("/worker")
+async def worker_status(probe: bool = False) -> dict:
+ return await run_in_threadpool(status, True, probe)
+
+
+@router.post("/worker/fetch")
+async def worker_fetch(request: Request) -> dict:
+ window_key.require(request)
+ with _lock:
+ if _job["state"] == "running":
+ return {"started": False, "fetch": dict(_job)}
+
+ def check() -> dict:
+ try:
+ return target_of(load_record(), host_triple())
+ except FetchError as error:
+ raise HTTPException(409, str(error)) from None
+
+ await run_in_threadpool(check)
+ with _lock:
+ if _job["state"] == "running":
+ return {"started": False, "fetch": dict(_job)}
+ _job.update(state="running", stage="record", fraction=0.0, message="Starting.")
+ threading.Thread(target=_run, name="cad-worker-fetch", daemon=True).start()
+ with _lock:
+ return {"started": True, "fetch": dict(_job)}
+
+
+def main(argv: list[str]) -> int:
+ command = argv[0] if argv else "fetch"
+ if command == "status":
+ print(json.dumps({"published": published(), "installed": installed(), "cache": str(workers_dir())}, indent=2))
+ return 0
+ if command != "fetch":
+ print("usage: cad_worker [fetch|status]", file=sys.stderr)
+ return 2
+ shown = {"stage": None, "tenth": -1}
+
+ def report(stage: str, fraction: float, message: str) -> None:
+ tenth = int(fraction * 10)
+ if stage != shown["stage"] or tenth != shown["tenth"]:
+ shown.update(stage=stage, tenth=tenth)
+ print(f"[formshot] {stage:8} {fraction * 100:5.1f}% {message}", flush=True)
+
+ try:
+ where = install(report)
+ except FetchError as error:
+ print(f"[formshot] error: {error}", file=sys.stderr)
+ return 1
+ print(f"[formshot] worker ready: {where / exe_name()}")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main(sys.argv[1:]))
diff --git a/backend/app/routers/handoff.py b/backend/app/routers/handoff.py
new file mode 100644
index 00000000..9c6d60c2
--- /dev/null
+++ b/backend/app/routers/handoff.py
@@ -0,0 +1,403 @@
+"""Models and materials handed over by other Form apps (0.5.0).
+
+The family hands work over through two places: the GoF folder (FORMSCULPT_GOF, else Formsculpt/GoF in the home folder),
+where FormSculpt and FormFabric write files and gof.json, and FormSurface's exports folder (FORMSURFACE_DATA, else the
+data folder its service reports at /api/health, else FormSurface in the home folder). This router watches both while the
+window is open, holds what arrives for FormShot, and asks the person in the window before anything is opened. Each app
+can be asked about, always allowed or blocked; the choice is kept in handoff.json in the data folder."""
+
+import json
+import os
+import secrets
+import threading
+import time
+import urllib.error
+import urllib.request
+from pathlib import Path
+
+from fastapi import APIRouter, HTTPException, Request
+from starlette.concurrency import run_in_threadpool
+
+from app import window_key
+from app.agent import config, events
+from app.engine import EngineError, EngineUnavailable, engine
+
+router = APIRouter(prefix="/api/handoff", tags=["handoff"])
+
+APPS = {"formcad": "FormCAD", "formsculpt": "FormSculpt", "formsurface": "FormSurface", "formfabric": "FormFabric"}
+CHOICES = ("ask", "allowed", "blocked")
+GOF_MANIFEST = "gof.json"
+GOF_TARGETS = ("formshot", "any")
+SURFACE_PORT = 8766
+HEALTH_SECONDS = 30.0
+SCAN_SECONDS = 2.0
+STABLE_SECONDS = 1.5
+LIVE_SECONDS = 8.0
+MAP_EXTENSIONS = ("png", "tif", "tiff", "exr", "hdr", "jpg", "jpeg", "psd")
+MODES = ("new", "add")
+ANSWERS = ("deny", "once", "always")
+_lock = threading.RLock()
+_opener = urllib.request.build_opener(urllib.request.ProxyHandler({}))
+_health = {"at": -HEALTH_SECONDS, "data": None}
+_offers: dict[str, dict] = {}
+_watch: dict = {"thread": None, "window": -LIVE_SECONDS}
+
+
+def _store_path() -> Path:
+ return config.data_dir() / "handoff.json"
+
+
+def stored() -> dict:
+ try:
+ found = json.loads(_store_path().read_text(encoding="utf-8"))
+ except (OSError, ValueError):
+ return {}
+ return found if isinstance(found, dict) else {}
+
+
+def _save(values: dict) -> None:
+ part = _store_path().with_name("handoff.json.part")
+ part.write_text(json.dumps(values, indent=1), encoding="utf-8")
+ part.replace(_store_path())
+
+
+def app_choices() -> dict:
+ kept = stored().get("apps")
+ kept = kept if isinstance(kept, dict) else {}
+ return {app: kept.get(app) if kept.get(app) in CHOICES else "ask" for app in APPS}
+
+
+def set_choice(app: str, choice: str) -> dict:
+ if app not in APPS:
+ raise HTTPException(400, f"app is one of {', '.join(APPS)}")
+ if choice not in CHOICES:
+ raise HTTPException(400, f"choice is one of {', '.join(CHOICES)}")
+ with _lock:
+ values = stored()
+ apps = values.get("apps") if isinstance(values.get("apps"), dict) else {}
+ apps[app] = choice
+ values["apps"] = apps
+ _save(values)
+ return app_choices()
+
+
+def gof_folder() -> Path:
+ given = config.env("HANDOFF_GOF") or os.environ.get("FORMSCULPT_GOF", "").strip()
+ return Path(given).expanduser() if given else Path.home() / "Formsculpt" / "GoF"
+
+
+def _surface_health() -> str | None:
+ now = time.monotonic()
+ if now - _health["at"] < HEALTH_SECONDS:
+ return _health["data"]
+ port = os.environ.get("FORMSURFACE_PORT", "").strip()
+ base = os.environ.get("FORMSURFACE_SERVICE", "").strip() or f"http://127.0.0.1:{port if port.isdigit() else SURFACE_PORT}"
+ data = None
+ try:
+ with _opener.open(base.rstrip("/") + "/api/health", timeout=1.0) as reply:
+ found = json.loads(reply.read().decode("utf-8") or "{}")
+ data = str(found.get("data") or "") or None if isinstance(found, dict) else None
+ except (urllib.error.URLError, OSError, ValueError):
+ data = None
+ _health.update(at=now, data=data)
+ return data
+
+
+def surface_exports() -> Path:
+ given = config.env("HANDOFF_SURFACE") or os.environ.get("FORMSURFACE_DATA", "").strip()
+ if given:
+ return Path(given).expanduser() / "exports"
+ reported = _surface_health()
+ if reported:
+ return Path(reported).expanduser() / "exports"
+ return Path.home() / "FormSurface" / "exports"
+
+
+def sources() -> list[dict]:
+ gof, surface = gof_folder(), surface_exports()
+ return [
+ {"id": "gof", "label": "GoF folder", "apps": ["formsculpt", "formfabric"], "folder": str(gof), "found": (gof / GOF_MANIFEST).is_file()},
+ {"id": "formsurface", "label": "FormSurface exports", "apps": ["formsurface"], "folder": str(surface), "found": surface.is_dir()},
+ ]
+
+
+def _app_id(value) -> str | None:
+ text = str(value or "").strip().lower()
+ return text if text in APPS else None
+
+
+def _mtime(path: Path) -> float:
+ try:
+ return path.stat().st_mtime
+ except OSError:
+ return 0.0
+
+
+def gof_items() -> list[dict]:
+ folder = gof_folder()
+ try:
+ manifest = json.loads((folder / GOF_MANIFEST).read_text(encoding="utf-8"))
+ except (OSError, ValueError):
+ return []
+ if not isinstance(manifest, dict) or not isinstance(manifest.get("objects"), list):
+ return []
+ top = manifest.get("app")
+ now = time.time()
+ out = []
+ for entry in manifest["objects"]:
+ if not isinstance(entry, dict):
+ continue
+ file = str(entry.get("file") or "")
+ fmt = str(entry.get("format") or Path(file).suffix.lstrip(".")).lower()
+ path = folder / file
+ if not file or Path(file).name != file or fmt == "package" or not path.is_file():
+ continue
+ changed = _mtime(path)
+ target = str(entry.get("target") or "").lower()
+ app = _app_id(entry.get("app")) or _app_id(top)
+ out.append({
+ "key": f"gof:{file}", "source": "gof", "path": str(folder), "item": file, "file": str(path),
+ "app": app, "app_name": APPS.get(app or "", str(entry.get("app") or top or "")), "title": str(entry.get("name") or file),
+ "format": fmt, "target": target, "for_formshot": target in GOF_TARGETS, "triangles": entry.get("triangles"),
+ "units": entry.get("units"), "sent": entry.get("sent"), "changed": changed,
+ "mark": f"{entry.get('sent')}:{entry.get('revision')}:{changed}", "stable": now - changed >= STABLE_SECONDS,
+ })
+ return out
+
+
+def surface_items() -> list[dict]:
+ exports = surface_exports()
+ try:
+ folders = [p for p in exports.iterdir() if p.is_dir() and not p.name.startswith(".")]
+ except OSError:
+ return []
+ now = time.time()
+ out = []
+ for folder in folders:
+ stem = folder.name
+ try:
+ files = [p for p in folder.iterdir() if p.is_file()]
+ except OSError:
+ continue
+ maps = [p for p in files if p.name.startswith(f"{stem}_") and p.suffix.lower().lstrip(".") in MAP_EXTENSIONS]
+ mesh = folder / f"{stem}.obj"
+ if not maps and not mesh.is_file():
+ continue
+ changed = max(_mtime(p) for p in maps + ([mesh] if mesh.is_file() else []))
+ out.append({
+ "key": f"formsurface:{stem}", "source": "formsurface", "path": str(folder), "item": None, "file": str(folder),
+ "app": "formsurface", "app_name": APPS["formsurface"], "title": stem, "format": "maps", "target": "any",
+ "for_formshot": True, "maps": len(maps), "mesh": mesh.is_file(), "changed": changed,
+ "mark": f"{len(maps)}:{changed}", "stable": now - changed >= STABLE_SECONDS,
+ })
+ return out
+
+
+def available() -> list[dict]:
+ return sorted(gof_items() + surface_items(), key=lambda i: i["changed"], reverse=True)
+
+
+def run_engine(name: str, args: dict):
+ try:
+ return engine.dispatch(name, args)
+ except EngineUnavailable as error:
+ raise HTTPException(503, str(error)) from None
+ except EngineError as error:
+ raise HTTPException(error.status, str(error)) from None
+
+
+def open_offer(offer: dict, mode: str, auto: bool = False) -> dict:
+ args = {"path": offer["path"], "as": mode}
+ if offer.get("item"):
+ args["item"] = offer["item"]
+ result = run_engine("handoff.open", args)
+ events.publish("document.changed", source="handoff")
+ events.publish("handoff.opened", id=offer.get("id"), app=offer.get("app"), app_name=offer.get("app_name"), title=offer.get("title"), mode=mode, auto=auto)
+ return result
+
+
+def _public(offer: dict) -> dict:
+ return {k: v for k, v in offer.items() if k not in ("mark", "stable", "for_formshot")}
+
+
+def pending() -> list[dict]:
+ return sorted((_public(o) for o in _offers.values()), key=lambda o: o["arrived"])
+
+
+def _arrive(item: dict) -> None:
+ choice = app_choices().get(item.get("app") or "", "ask")
+ if choice == "blocked":
+ events.publish("handoff.blocked", app=item.get("app"), title=item.get("title"))
+ return
+ for old in [k for k, o in _offers.items() if o["key"] == item["key"]]:
+ _offers.pop(old, None)
+ events.publish("handoff.withdrawn", id=old)
+ offer = {**item, "id": secrets.token_urlsafe(9), "arrived": int(time.time() * 1000)}
+ if choice == "allowed":
+ try:
+ open_offer(offer, "add", auto=True)
+ except HTTPException as error:
+ offer["error"] = str(error.detail)
+ else:
+ return
+ _offers[offer["id"]] = offer
+ events.publish("handoff.offered", offer=_public(offer))
+
+
+def scan() -> int:
+ fresh = []
+ with _lock:
+ values = stored()
+ seen = values.get("seen") if isinstance(values.get("seen"), dict) else {}
+ started = values.get("started") if isinstance(values.get("started"), dict) else {}
+ for source, folder, items in (("gof", gof_folder(), gof_items()), ("formsurface", surface_exports(), surface_items())):
+ place = f"{source}:{folder}"
+ first = place not in started
+ for item in items:
+ if not item["for_formshot"] or not item["stable"]:
+ continue
+ key = f"{place}|{item['key']}"
+ if seen.get(key) == item["mark"]:
+ continue
+ seen[key] = item["mark"]
+ if not first:
+ fresh.append(item)
+ if folder.is_dir():
+ started[place] = int(time.time())
+ values["seen"], values["started"] = seen, started
+ _save(values)
+ for item in fresh:
+ _arrive(item)
+ return len(fresh)
+
+
+def _window_live() -> bool:
+ return time.monotonic() - _watch["window"] <= LIVE_SECONDS or events.watching() > 0
+
+
+def _loop() -> None:
+ while True:
+ time.sleep(SCAN_SECONDS)
+ if not _window_live():
+ continue
+ try:
+ scan()
+ except Exception:
+ continue
+
+
+def ensure_watcher() -> None:
+ _watch["window"] = time.monotonic()
+ with _lock:
+ if _watch["thread"] is None:
+ _watch["thread"] = threading.Thread(target=_loop, name="formshot-handoff-watch", daemon=True)
+ _watch["thread"].start()
+
+
+@router.get("/apps")
+def get_apps(request: Request) -> dict:
+ window_key.require(request)
+ return {"apps": app_choices(), "names": APPS, "choices": list(CHOICES)}
+
+
+async def _body(request: Request) -> dict:
+ try:
+ body = await request.json()
+ except ValueError:
+ body = {}
+ return body if isinstance(body, dict) else {}
+
+
+@router.post("/apps")
+async def post_apps(request: Request) -> dict:
+ body = await _body(request)
+ return {"apps": set_choice(str(body.get("app") or ""), str(body.get("choice") or "")), "names": APPS}
+
+
+@router.get("/offers")
+async def get_offers(request: Request) -> dict:
+ window_key.require(request)
+ ensure_watcher()
+ await run_in_threadpool(scan)
+ return {"offers": pending(), "apps": app_choices(), "names": APPS, "sources": await run_in_threadpool(sources)}
+
+
+def answer(oid: str, reply: str, mode: str) -> dict:
+ if reply not in ANSWERS:
+ raise HTTPException(400, f"answer is one of {', '.join(ANSWERS)}")
+ if mode not in MODES:
+ raise HTTPException(400, f"as is one of {', '.join(MODES)}")
+ with _lock:
+ offer = _offers.pop(oid, None)
+ if offer is None:
+ raise HTTPException(404, "That hand-off is no longer waiting")
+ events.publish("handoff.withdrawn", id=oid)
+ if reply == "deny":
+ return {"ok": True, "id": oid, "answer": reply}
+ if reply == "always" and offer.get("app"):
+ set_choice(offer["app"], "allowed")
+ try:
+ result = open_offer(offer, mode)
+ except HTTPException:
+ with _lock:
+ _offers[oid] = offer
+ events.publish("handoff.offered", offer=_public(offer))
+ raise
+ if reply == "always" and offer.get("app"):
+ _open_held(offer["app"])
+ return {"ok": True, "id": oid, "answer": reply, "as": mode, "result": result, "apps": app_choices()}
+
+
+def _open_held(app: str) -> None:
+ with _lock:
+ held = sorted((o for o in _offers.values() if o.get("app") == app), key=lambda o: o["arrived"])
+ for o in held:
+ _offers.pop(o["id"], None)
+ for o in held:
+ events.publish("handoff.withdrawn", id=o["id"])
+ try:
+ open_offer(o, "add", auto=True)
+ except HTTPException as error:
+ o["error"] = str(error.detail)
+ with _lock:
+ _offers[o["id"]] = o
+ events.publish("handoff.offered", offer=_public(o))
+
+
+@router.post("/offers/{oid}")
+async def post_answer(oid: str, request: Request) -> dict:
+ body = await _body(request)
+ return await run_in_threadpool(answer, oid, str(body.get("answer") or ""), str(body.get("as") or "add"))
+
+
+@router.get("/available")
+async def get_available(request: Request) -> dict:
+ window_key.require(request)
+ return {"items": await run_in_threadpool(available), "sources": await run_in_threadpool(sources)}
+
+
+def _target(body: dict) -> dict:
+ path = str(body.get("path") or "").strip()
+ if not path:
+ raise HTTPException(400, "Give path: the file or folder another Form app wrote")
+ args = {"path": path}
+ item = body.get("item")
+ if isinstance(item, (str, int)) and str(item).strip():
+ args["item"] = item
+ return args
+
+
+@router.post("/inspect")
+async def post_inspect(request: Request) -> dict:
+ args = _target(await _body(request))
+ return await run_in_threadpool(run_engine, "handoff.inspect", args)
+
+
+@router.post("/open")
+async def post_open(request: Request) -> dict:
+ body = await _body(request)
+ mode = str(body.get("as") or "add")
+ if mode not in MODES:
+ raise HTTPException(400, f"as is one of {', '.join(MODES)}")
+ args = _target(body)
+ return await run_in_threadpool(open_offer, {**args, "title": Path(args["path"]).name}, mode)
diff --git a/backend/app/routers/imports.py b/backend/app/routers/imports.py
new file mode 100644
index 00000000..cb08f77e
--- /dev/null
+++ b/backend/app/routers/imports.py
@@ -0,0 +1,332 @@
+"""Model files sent by the window for import (0.5.0)."""
+
+import asyncio
+import re
+import secrets
+import shutil
+import time
+import unicodedata
+from contextlib import asynccontextmanager
+from pathlib import Path
+
+from fastapi import APIRouter, HTTPException, Request
+from starlette.concurrency import run_in_threadpool
+
+from app import project_library as library
+from app import window_key
+
+KEEP_SECONDS = 24 * 3600
+SWEEP_EVERY = 3600
+
+
+def newest(folder: Path) -> float:
+ stamp = folder.stat().st_mtime
+ try:
+ for child in folder.rglob("*"):
+ stamp = max(stamp, child.lstat().st_mtime)
+ except OSError:
+ pass
+ return stamp
+
+
+def sweep(now: float | None = None) -> int:
+ base = library.PROJECTS / FOLDER
+ if base.is_symlink() or not base.is_dir():
+ return 0
+ cutoff = (time.time() if now is None else now) - KEEP_SECONDS
+ removed = 0
+ for entry in base.iterdir():
+ try:
+ if entry.is_symlink() or not entry.is_dir() or not ID.match(entry.name):
+ continue
+ if newest(entry) < cutoff:
+ shutil.rmtree(entry, ignore_errors=True)
+ removed += 1
+ except OSError:
+ continue
+ return removed
+
+
+async def sweep_forever() -> None:
+ while True:
+ try:
+ await run_in_threadpool(sweep)
+ except Exception:
+ pass
+ await asyncio.sleep(SWEEP_EVERY)
+
+
+@asynccontextmanager
+async def lifespan(_app):
+ task = asyncio.create_task(sweep_forever())
+ try:
+ yield
+ finally:
+ task.cancel()
+
+
+router = APIRouter(lifespan=lifespan)
+
+FOLDER = ".imports"
+ID = re.compile(r"^[a-f0-9]{16}\Z")
+BAD = re.compile(r'[\x00-\x1f\x7f<>:"|?*]')
+WINDOWS_NAMES = {"con", "prn", "aux", "nul", *(f"com{i}" for i in range(1, 10)), *(f"lpt{i}" for i in range(1, 10))}
+MODEL_SUFFIXES = library.MESH_SUFFIXES
+SIBLING_SUFFIXES = {".bin", ".mtl", ".png", ".jpg", ".jpeg", ".webp", ".ktx2", ".tga", ".bmp", ".tif", ".tiff", ".exr", ".hdr", ".dds", ".gif"}
+NAME_LIMIT = 120
+DEPTH_LIMIT = 4
+FILE_LIMIT = library.MESH_LIMIT
+TOTAL_LIMIT = 2 * library.MESH_LIMIT
+FILE_COUNT = 256
+HEADER_LIMIT = 16 * 1024
+FIELD_LIMIT = 4096
+SCAN_DEPTH = 6
+SCAN_LIMIT = 500
+TOO_BIG = "The upload is too large: one file may be at most 1 GB and one import at most 2 GB"
+NOT_MULTIPART = "Send the model as multipart/form-data with a file part named main and any sibling files named files"
+
+
+def root() -> Path:
+ return library.PROJECTS / FOLDER
+
+
+def clean_segment(raw: str) -> str:
+ text = unicodedata.normalize("NFC", raw)
+ text = BAD.sub("_", text).strip().lstrip(".").rstrip(". ")
+ if not text:
+ raise HTTPException(400, "A file name is empty after removing characters that cannot be in a file name")
+ if len(text) > NAME_LIMIT:
+ stem, dot, ext = text.rpartition(".")
+ keep = f".{ext}" if dot and len(ext) <= 10 else ""
+ text = text[: NAME_LIMIT - len(keep)].rstrip(". ") + keep
+ if text.split(".")[0].lower() in WINDOWS_NAMES:
+ text = f"_{text}"
+ return text
+
+
+def clean_name(raw: str, nested: bool) -> str:
+ parts = [p for p in re.split(r"[\\/]+", raw or "") if p not in ("", ".")]
+ if not parts:
+ raise HTTPException(400, "A file has no name")
+ if ".." in parts:
+ raise HTTPException(400, f"The file name {raw!r} climbs out of its folder")
+ if not nested:
+ parts = parts[-1:]
+ if len(parts) > DEPTH_LIMIT:
+ parts = parts[-DEPTH_LIMIT:]
+ return "/".join(clean_segment(p) for p in parts)
+
+
+def suffix(name: str) -> str:
+ return Path(name).suffix.lower()
+
+
+def folder_for(entry: str) -> Path:
+ if not isinstance(entry, str) or not ID.match(entry):
+ raise HTTPException(404, "No such upload")
+ path = root() / entry
+ if path.is_symlink() or not path.is_dir() or not library.inside(path):
+ raise HTTPException(404, "No such upload")
+ return path
+
+
+def disposition(headers: bytes) -> tuple[str, str | None]:
+ text = headers.decode("utf-8", "replace")
+ line = next((l for l in text.split("\r\n") if l.lower().startswith("content-disposition:")), "")
+ name = re.search(r'\bname="((?:[^"\\]|\\.)*)"', line)
+ filename = re.search(r'\bfilename="((?:[^"\\]|\\.)*)"', line)
+ unquote = lambda s: s.replace('\\"', '"').replace("%22", '"')
+ return (unquote(name.group(1)) if name else ""), (unquote(filename.group(1)) if filename else None)
+
+
+class Upload:
+ def __init__(self, folder: Path) -> None:
+ self.folder = folder
+ self.files: list[str] = []
+ self.main: str | None = None
+ self.total = 0
+ self.handle = None
+ self.size = 0
+ self.field: str | None = None
+ self.value = b""
+ self.fields: dict[str, str] = {}
+
+ def begin(self, field: str, filename: str | None) -> None:
+ if filename is None:
+ self.field = field
+ self.value = b""
+ return
+ if len(self.files) >= FILE_COUNT:
+ raise HTTPException(400, f"One import may hold at most {FILE_COUNT} files")
+ is_main = field == "main" or (self.main is None and field != "files" and not self.files)
+ name = clean_name(filename, nested=not is_main)
+ kind = suffix(name)
+ if is_main and kind not in MODEL_SUFFIXES:
+ raise HTTPException(400, f"FormShot does not import {kind or 'files without an extension'}; it reads {library.MESH_WORDS}")
+ if not is_main and kind not in MODEL_SUFFIXES | SIBLING_SUFFIXES:
+ raise HTTPException(400, f"The file {name} is not a model, buffer, material or texture file")
+ if is_main and self.main is not None:
+ raise HTTPException(400, "Send one main model per import")
+ if name in self.files:
+ raise HTTPException(400, f"The file {name} was sent twice")
+ target = self.folder / name
+ target.parent.mkdir(parents=True, exist_ok=True)
+ if not library.inside(target.parent):
+ raise HTTPException(400, library.OUTSIDE)
+ self.handle = target.open("wb")
+ self.size = 0
+ self.files.append(name)
+ if is_main:
+ self.main = name
+
+ def write(self, data: bytes) -> None:
+ if not data:
+ return
+ if self.handle is None:
+ if self.field is not None:
+ self.value += data
+ if len(self.value) > FIELD_LIMIT:
+ raise HTTPException(400, "A form field is too long")
+ return
+ self.size += len(data)
+ self.total += len(data)
+ if self.size > FILE_LIMIT or self.total > TOTAL_LIMIT:
+ raise HTTPException(413, TOO_BIG)
+ self.handle.write(data)
+
+ def end(self) -> None:
+ if self.handle is not None:
+ self.handle.close()
+ self.handle = None
+ elif self.field is not None:
+ self.fields[self.field] = self.value.decode("utf-8", "replace")
+ self.field = None
+
+ def close(self) -> None:
+ if self.handle is not None:
+ self.handle.close()
+ self.handle = None
+
+
+async def receive(request: Request, upload: Upload, boundary: bytes) -> None:
+ delimiter = b"\r\n--" + boundary
+ buffer = b"\r\n"
+ state = "preamble"
+ async for chunk in request.stream():
+ buffer += chunk
+ while True:
+ if state == "preamble":
+ at = buffer.find(delimiter)
+ if at < 0:
+ buffer = buffer[-len(delimiter):]
+ break
+ buffer = buffer[at + len(delimiter):]
+ state = "boundary"
+ if state == "boundary":
+ if len(buffer) < 2:
+ break
+ if buffer.startswith(b"--"):
+ return
+ if not buffer.startswith(b"\r\n"):
+ raise HTTPException(400, NOT_MULTIPART)
+ buffer = buffer[2:]
+ state = "headers"
+ if state == "headers":
+ at = buffer.find(b"\r\n\r\n")
+ if at < 0:
+ if len(buffer) > HEADER_LIMIT:
+ raise HTTPException(400, NOT_MULTIPART)
+ break
+ field, filename = disposition(buffer[:at])
+ buffer = buffer[at + 4:]
+ upload.begin(field, filename)
+ state = "body"
+ if state == "body":
+ at = buffer.find(delimiter)
+ if at < 0:
+ keep = len(delimiter) - 1
+ if len(buffer) > keep:
+ upload.write(buffer[:-keep])
+ buffer = buffer[-keep:]
+ break
+ upload.write(buffer[:at])
+ upload.end()
+ buffer = buffer[at + len(delimiter):]
+ state = "boundary"
+ raise HTTPException(400, "The upload ended before its last part")
+
+
+@router.post("/api/imports")
+async def create_upload(request: Request):
+ window_key.require(request)
+ kind = request.headers.get("content-type", "")
+ found = re.search(r'boundary="?([^";]+)"?', kind)
+ if not kind.lower().startswith("multipart/form-data") or not found:
+ raise HTTPException(400, NOT_MULTIPART)
+ declared = request.headers.get("content-length", "")
+ if declared.isdigit() and int(declared) > TOTAL_LIMIT + 1_000_000:
+ raise HTTPException(413, TOO_BIG)
+ base = root()
+ base.mkdir(parents=True, exist_ok=True)
+ if base.is_symlink() or not library.inside(base):
+ raise HTTPException(400, library.OUTSIDE)
+ entry = secrets.token_hex(8)
+ folder = base / entry
+ folder.mkdir()
+ upload = Upload(folder)
+ try:
+ await receive(request, upload, found.group(1).encode("latin-1"))
+ if upload.main is None:
+ raise HTTPException(400, "The upload holds no model file")
+ except BaseException:
+ upload.close()
+ shutil.rmtree(folder, ignore_errors=True)
+ raise
+ main = (folder / upload.main).resolve()
+ return {"id": entry, "path": str(main), "folder": str(folder.resolve()), "name": upload.main, "files": upload.files, "bytes": upload.total}
+
+
+@router.delete("/api/imports/{entry}")
+def delete_upload(entry: str, request: Request):
+ window_key.require(request)
+ shutil.rmtree(folder_for(entry))
+ return {"ok": True}
+
+
+def walk(path: Path, depth: int, out: list[Path]) -> None:
+ if len(out) >= SCAN_LIMIT:
+ return
+ if path.is_file():
+ if suffix(path.name) in MODEL_SUFFIXES and not path.name.startswith("."):
+ out.append(path)
+ return
+ if depth <= 0 or not path.is_dir() or path.is_symlink():
+ return
+ try:
+ children = sorted(path.iterdir(), key=lambda p: (p.is_dir(), p.name.lower()))
+ except OSError:
+ return
+ for child in children:
+ if not child.name.startswith("."):
+ walk(child, depth - 1, out)
+
+
+@router.post("/api/imports/scan")
+async def scan_paths(request: Request):
+ window_key.require(request)
+ try:
+ body = await request.json()
+ except ValueError as error:
+ raise HTTPException(400, "Send a JSON object with paths") from error
+ paths = body.get("paths") if isinstance(body, dict) else None
+ if not isinstance(paths, list) or not all(isinstance(p, str) for p in paths):
+ raise HTTPException(400, "Send a JSON object with paths, a list of absolute paths")
+ found: list[Path] = []
+ missing = 0
+ for raw in paths[:SCAN_LIMIT]:
+ path = Path(raw).expanduser()
+ if not path.is_absolute() or not path.exists():
+ missing += 1
+ continue
+ walk(path, SCAN_DEPTH, found)
+ return {"files": [{"path": str(p), "name": p.name} for p in found], "missing": missing, "capped": len(found) >= SCAN_LIMIT}
diff --git a/backend/app/routers/library.py b/backend/app/routers/library.py
new file mode 100644
index 00000000..e10f1cbd
--- /dev/null
+++ b/backend/app/routers/library.py
@@ -0,0 +1,127 @@
+"""The material library: preset thumbnails from the user cache (rendered by the engine when missing) and the index."""
+
+import asyncio
+import os
+import re
+import sys
+import time
+from pathlib import Path
+from typing import Any
+
+from fastapi import APIRouter, HTTPException, Query, Request, Response
+from fastapi.responses import FileResponse
+from pydantic import BaseModel, Field
+from starlette.concurrency import run_in_threadpool
+
+from app.engine import EngineError, EngineUnavailable, engine
+from app.routers.cad import cache_dir
+
+router = APIRouter(prefix="/api/library", tags=["library"])
+
+LIBRARY_ENV = "FORMSHOT_LIBRARY"
+PRODUCT = "FormShot"
+MIN_SIZE, MAX_SIZE, DEFAULT_SIZE = 64, 512, 128
+WAIT = 60.0
+POLL = 0.15
+HASH = re.compile(r"^[0-9a-f]{64}$")
+IMMUTABLE = "public, max-age=31536000, immutable"
+REVALIDATE = "no-cache"
+BUSY = ("queued", "rendering")
+
+
+def bundled_library() -> Path | None:
+ exe = Path(sys.executable).resolve().parent
+ places = [exe.parent / "Resources" / "library", exe / "library", exe / "resources" / "library",
+ exe.parent / "lib" / PRODUCT / "library", exe.parent / "lib" / PRODUCT.lower() / "library"]
+ appdir = os.environ.get("APPDIR", "").strip()
+ if appdir:
+ places.append(Path(appdir) / "usr" / "lib" / PRODUCT / "library")
+ places.append(Path("/usr/lib") / PRODUCT / "library")
+ return next((p for p in places if (p / "materials" / "index.json").is_file()), None)
+
+
+def point_engine_at_bundle() -> None:
+ if os.environ.get(LIBRARY_ENV, "").strip() or not getattr(sys, "frozen", False):
+ return
+ found = bundled_library()
+ if found is not None:
+ os.environ[LIBRARY_ENV] = str(found)
+
+
+point_engine_at_bundle()
+
+
+def thumbs_dir() -> Path:
+ return cache_dir() / "formshot" / "library" / "thumbs"
+
+
+class Batch(BaseModel):
+ ids: list[str] = Field(min_length=1, max_length=512)
+ size: int = Field(DEFAULT_SIZE, ge=MIN_SIZE, le=MAX_SIZE)
+
+
+async def call(name: str, args: dict[str, Any]):
+ try:
+ return await run_in_threadpool(engine.dispatch, name, args)
+ except EngineUnavailable as error:
+ raise HTTPException(503, str(error)) from None
+ except EngineError as error:
+ status = 404 if error.status == 422 and str(error).startswith(("no preset", "no user preset")) else error.status
+ raise HTTPException(status, str(error)) from None
+
+
+def etag(sha: str, size: int) -> str:
+ return f'"{sha}-{size}"'
+
+
+def picture(path: Path, sha: str, size: int, request: Request, cache: str) -> Response:
+ tag = etag(sha, size)
+ headers = {"ETag": tag, "Cache-Control": cache}
+ if tag in [t.strip() for t in request.headers.get("if-none-match", "").split(",")]:
+ return Response(status_code=304, headers=headers)
+ return FileResponse(path, media_type="image/png", headers=headers)
+
+
+@router.get("/thumbnail/{preset:path}")
+async def thumbnail(preset: str, request: Request, size: int = Query(DEFAULT_SIZE, ge=MIN_SIZE, le=MAX_SIZE),
+ h: str = Query("", max_length=64)) -> Response:
+ wanted = h.lower()
+ if wanted and not HASH.match(wanted):
+ raise HTTPException(400, "h is the preset's SHA-256 in hex, as library.list gives it")
+ if wanted:
+ cached = thumbs_dir() / f"{wanted}-{size}.png"
+ if cached.is_file():
+ return picture(cached, wanted, size, request, IMMUTABLE)
+ deadline = time.monotonic() + WAIT
+ reply = await call("library.thumbnail", {"id": preset, "size": size})
+ while isinstance(reply, dict) and reply.get("state") in BUSY and time.monotonic() < deadline:
+ await asyncio.sleep(POLL)
+ reply = await call("library.thumbnail", {"id": preset, "size": size})
+ if not isinstance(reply, dict):
+ raise HTTPException(502, "The engine answered library.thumbnail without a thumbnail")
+ state = reply.get("state")
+ if state in BUSY:
+ raise HTTPException(503, "The thumbnail is still being rendered", headers={"Retry-After": "2"})
+ if state != "ready":
+ raise HTTPException(500, f"The thumbnail could not be rendered: {reply.get('error') or 'unknown reason'}")
+ sha = str(reply.get("sha256") or "")
+ path = Path(str(reply.get("path") or ""))
+ if not path.is_file():
+ raise HTTPException(500, "The engine reported a thumbnail that is not in the cache")
+ return picture(path, sha, size, request, IMMUTABLE if wanted == sha else REVALIDATE)
+
+
+@router.get("/index")
+async def index(category: str = Query("", max_length=40), query: str = Query("", max_length=200),
+ shelf: str = Query("all", max_length=20)):
+ args: dict[str, Any] = {"shelf": shelf}
+ if category:
+ args["category"] = category
+ if query:
+ args["query"] = query
+ return await call("library.list", args)
+
+
+@router.post("/thumbnails")
+async def thumbnails(batch: Batch):
+ return await call("library.thumbnails", {"ids": batch.ids, "size": batch.size})
diff --git a/backend/app/routers/mcp.py b/backend/app/routers/mcp.py
index 90972baa..7ef9f1d6 100644
--- a/backend/app/routers/mcp.py
+++ b/backend/app/routers/mcp.py
@@ -71,7 +71,7 @@ async def call_tool(name: str, args: dict, tab: bool, agent: str) -> dict:
if refusal:
return {"content": [{"type": "text", "text": refusal}], "isError": True}
try:
- reply = await run_in_threadpool(engine.dispatch, name, args)
+ reply = await run_in_threadpool(engine.dispatch_outside, name, args, "mcp")
except (EngineUnavailable, EngineError) as error:
return _text({"message": str(error)}, error=True)
if isinstance(reply, dict) and reply.get("ok") is False:
diff --git a/backend/app/routers/textures.py b/backend/app/routers/textures.py
new file mode 100644
index 00000000..7c79679d
--- /dev/null
+++ b/backend/app/routers/textures.py
@@ -0,0 +1,124 @@
+"""Texture images a material uses: uploads from the window, kept beside the project (0.6.0)."""
+
+import re
+import secrets
+import shutil
+from pathlib import Path
+
+from fastapi import APIRouter, HTTPException, Request
+
+from app import project_library as library
+from app import window_key
+from app.routers.imports import FIELD_LIMIT, clean_name, receive
+
+router = APIRouter()
+
+FOLDER = ".textures"
+ID = re.compile(r"^[a-f0-9]{16}\Z")
+IMAGE_SUFFIXES = {".png", ".jpg", ".jpeg", ".hdr", ".exr"}
+IMAGE_WORDS = "PNG, JPEG, Radiance HDR and OpenEXR images"
+FILE_LIMIT = 512 << 20
+TOO_BIG = "The image is too large: one texture may be at most 512 MB"
+NOT_MULTIPART = "Send the image as multipart/form-data with one file part (named file or image)"
+
+
+def root() -> Path:
+ return library.PROJECTS / FOLDER
+
+
+def folder_for(entry: str) -> Path:
+ if not isinstance(entry, str) or not ID.match(entry):
+ raise HTTPException(404, "No such texture")
+ path = root() / entry
+ if path.is_symlink() or not path.is_dir() or not library.inside(path):
+ raise HTTPException(404, "No such texture")
+ return path
+
+
+class Upload:
+ def __init__(self, folder: Path) -> None:
+ self.folder = folder
+ self.name: str | None = None
+ self.size = 0
+ self.handle = None
+ self.field: str | None = None
+ self.value = b""
+
+ def begin(self, field: str, filename: str | None) -> None:
+ if filename is None:
+ self.field = field
+ self.value = b""
+ return
+ if self.name is not None:
+ raise HTTPException(400, "Send one image per texture upload")
+ name = clean_name(filename, nested=False)
+ kind = Path(name).suffix.lower()
+ if kind not in IMAGE_SUFFIXES:
+ raise HTTPException(400, f"FormShot does not read {kind or 'files without an extension'} as a texture; it reads {IMAGE_WORDS}")
+ target = self.folder / name
+ if not library.inside(target.parent):
+ raise HTTPException(400, library.OUTSIDE)
+ self.handle = target.open("wb")
+ self.name = name
+
+ def write(self, data: bytes) -> None:
+ if not data:
+ return
+ if self.handle is None:
+ if self.field is not None:
+ self.value += data
+ if len(self.value) > FIELD_LIMIT:
+ raise HTTPException(400, "A form field is too long")
+ return
+ self.size += len(data)
+ if self.size > FILE_LIMIT:
+ raise HTTPException(413, TOO_BIG)
+ self.handle.write(data)
+
+ def end(self) -> None:
+ self.close()
+ self.field = None
+
+ def close(self) -> None:
+ if self.handle is not None:
+ self.handle.close()
+ self.handle = None
+
+
+@router.post("/api/textures")
+async def create_texture(request: Request):
+ window_key.require(request)
+ kind = request.headers.get("content-type", "")
+ found = re.search(r'boundary="?([^";]+)"?', kind)
+ if not kind.lower().startswith("multipart/form-data") or not found:
+ raise HTTPException(400, NOT_MULTIPART)
+ declared = request.headers.get("content-length", "")
+ if declared.isdigit() and int(declared) > FILE_LIMIT + 1_000_000:
+ raise HTTPException(413, TOO_BIG)
+ base = root()
+ base.mkdir(parents=True, exist_ok=True)
+ if base.is_symlink() or not library.inside(base):
+ raise HTTPException(400, library.OUTSIDE)
+ entry = secrets.token_hex(8)
+ folder = base / entry
+ folder.mkdir()
+ upload = Upload(folder)
+ try:
+ await receive(request, upload, found.group(1).encode("latin-1"))
+ if upload.name is None:
+ raise HTTPException(400, "The upload holds no image")
+ if upload.size == 0:
+ raise HTTPException(400, "The image is empty")
+ except BaseException:
+ upload.close()
+ shutil.rmtree(folder, ignore_errors=True)
+ raise
+ path = (folder / upload.name).resolve()
+ return {"id": entry, "path": str(path), "name": upload.name, "bytes": upload.size}
+
+
+@router.delete("/api/textures/{entry}")
+def delete_texture(entry: str, request: Request):
+ window_key.require(request)
+ shutil.rmtree(folder_for(entry))
+ return {"ok": True}
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index d064bfae..e0f35165 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -4,6 +4,8 @@ This describes FormShot 0.2.0 as it is in the repository. Parts that the plan sc
Since 0.2.0 the repository has gained the GPU engine, the live viewport and a crash journal the engine actually writes; the sections [The GPU engine](#the-gpu-engine), [The live viewport](#the-live-viewport) and [The crash journal](#the-crash-journal) describe them, with the detail in [`GPU-ENGINE.md`](GPU-ENGINE.md) and [`VIEWPORT.md`](VIEWPORT.md). GPU rendering has run only on software Vulkan, software OpenGL and software WebGPU, never on a physical graphics card.
+The import, CAD, materials and library work added a crate (`fsh-cad`), command groups in their own modules, background import jobs, a material program, and a library of presets; [Command groups](#command-groups), [Import](#import), [CAD and family hand-offs](#cad-and-family-hand-offs), [Materials from the document to the tracers](#materials-from-the-document-to-the-tracers) and [The material library](#the-material-library) describe them, with the detail in [`IMPORT.md`](IMPORT.md), [`MATERIALS.md`](MATERIALS.md) and [`LIBRARY.md`](LIBRARY.md).
+
## The pieces
```text
@@ -26,24 +28,25 @@ Conventions everywhere in the engine: right-handed, Y up, metres, radians, colou
## The engine crates
-All crates live in `native/crates/`, edition 2021, Apache-2.0, version 0.4.0. `fsh-py` and `fsh-wasm` are outside the workspace's default members, so a plain `cargo build` does not need Python or the wasm target; `fsh-render-gpu` is a default member, so a plain build compiles wgpu.
+All crates live in `native/crates/`, edition 2021, Apache-2.0, version 0.6.0. `fsh-py` and `fsh-wasm` are outside the workspace's default members, so a plain `cargo build` does not need Python or the wasm target; `fsh-render-gpu` is a default member, so a plain build compiles wgpu.
| Crate | Holds | Depends on |
| --- | --- | --- |
| `fsh-core` | vectors, quaternions, `Mat4`, `Transform` with its inverse, `Ray`, `Aabb`, shading frames; `Rgb` in ACEScg with sRGB conversion and colour temperature; typed render ids and 64-bit document keys; length units; the deterministic sampler (Owen-scrambled Sobol for the first 64 dimensions, a hashed PCG beyond); sampling warps and MIS heuristics | std only |
-| `fsh-scene` | the document: groups, parts, lights and cutaways over shared meshes and materials, cameras, environment, ground, image style, render settings; the command table; undo and redo with merge and groups; change levels; selection; `flatten()` to the immutable `RenderSnapshot` | fsh-core, serde, serde_json |
+| `fsh-scene` | the document: groups, parts, lights and cutaways over shared meshes and materials, cameras, environment, ground, image style, render settings; the 18 material types, texture slots and material graphs, and the compiler that turns them into material programs; the command table; undo and redo with merge and groups; change levels; selection; `flatten()` to the immutable `RenderSnapshot` | fsh-core, fsh-materials, serde, serde_json |
| `fsh-accel` | the two-level BVH (binned SAH per mesh, a top tree over instances), the watertight ray and triangle test, closest-hit and occlusion queries behind the `Intersector` trait | fsh-core, rayon |
-| `fsh-materials` | the layered surface BSDF: EON diffuse, anisotropic GGX with visible-normal sampling, dielectric and F82-tint metal Fresnel, coat, rough transmission, fuzz, lobe selection and energy compensation tables built at first use | fsh-core |
-| `fsh-io` | glTF/GLB, OBJ with MTL, STL and PLY readers into a neutral raw scene, the clean-up pass (validate, weld, normals, instances, units, up axis, floor and centre) and the conversion to one `scene.import` command; a GLB writer without textures; PNG (8 or 16 bit) and Radiance HDR readers and writers, an uncompressed float OpenEXR writer, and its own deflate, CRC-32 and Adler-32 | fsh-core, fsh-scene, serde_json |
-| `fsh-format` | the `.fshot` project file: a stored ZIP of a manifest, the scene and material JSON and binary meshes, saved deterministically, loaded with validation, written atomically; the JSONL command journal with rotating snapshots and recovery | fsh-core, fsh-scene, serde, serde_json |
-| `fsh-render-cpu` | the CPU path tracer, the specification engine: tiles on rayon, next-event estimation, MIS, Russian roulette, environment importance sampling, procedural sky and studio sweep, analytic lights, shadow-catcher ground, thin lens, a framebuffer of running sums with progressive passes and a cancel flag, the develop step (exposure; Neutral, AgX, ACES, sRGB and raw transforms) and the a-trous denoiser | fsh-core, fsh-scene, fsh-accel, fsh-materials, rayon |
-| `fsh-render-gpu` | the GPU path tracer on wgpu 30 compute: adapters and refusals, the flat scene buffers, one WGSL megakernel with a software BVH traversal and a ray-query variant, the film in row bands, adaptive sampling, reduced-resolution passes and readback through the CPU's develop step (see [`GPU-ENGINE.md`](GPU-ENGINE.md)) | fsh-core, fsh-scene, fsh-accel, fsh-materials, fsh-render-cpu, wgpu, bytemuck, pollster (native), naga (validation feature only) |
-| `fsh-commands` | the one command catalogue (88 entries: 39 document commands from `fsh-scene`, 38 engine commands for the app, selection, history, files, viewing and rendering, and 11 aliases from its one alias table) and `dispatch(session, name, args)` over an `Engine` session that owns the document, the history, the selected renderer (CPU or GPU behind one `PreviewRenderer` trait), its background render thread and the crash journal | every crate above; fsh-render-gpu and pollster natively only |
-| `fsh-cli` | the `formshot-engine` program: `render` (with `--device`), `info`, `convert`, `devices`, `bench`, `catalogue`, `dispatch` over JSON lines on stdin (with `--journal`), `version` and `help`. Run so far: the sample scene rendered byte-identical on 1 and 2 threads, a GLB and `.fshot` round trip rendered byte-identical pictures from both files, and `bench` rendered the sample on the CPU, software Vulkan and software OpenGL within 0.00001 of each other | fsh-commands, fsh-io |
+| `fsh-materials` | the layered surface BSDF: EON diffuse, anisotropic GGX with visible-normal sampling, dielectric and F82-tint metal Fresnel, coat, rough transmission, fuzz, lobe selection and energy compensation tables built at first use; the material program (25 opcodes), its interpreter, the texture pixel types, mips and sampler, the ten procedural patterns, and thin-film iridescence and the dispersion law (`Optics`) | fsh-core, serde |
+| `fsh-io` | glTF/GLB, OBJ with MTL, STL, PLY, 3MF and FBX readers into a neutral raw scene with texture slots, the clean-up pass (validate, weld, normals, tangents, instances under rotation and mirroring, units with a confidence, up axis, floor and centre) and the conversion to one `scene.import` command; `probe`; readers for what the other Form apps hand over (`family/`); a GLB writer without textures; PNG (8 or 16 bit) and Radiance HDR readers and writers, an OpenEXR reader (scanline; NONE, RLE, ZIP, PIZ, PXR24) and uncompressed float writer, a JPEG reader, one `decode_image` for textures, and its own deflate, ZIP reader, CRC-32 and Adler-32 | fsh-core, fsh-scene, serde_json, roxmltree, bevy_mikktspace, zune-jpeg; ufbx natively only |
+| `fsh-format` | the `.fshot` project file: a stored ZIP of a manifest, the scene and material JSON, binary meshes, embedded textures (named by SHA-256) and kept CAD sources, saved deterministically, loaded with validation, written atomically; the JSONL command journal with rotating snapshots and recovery | fsh-core, fsh-scene, serde, serde_json |
+| `fsh-cad` | STEP and IGES through FormCAD's kernel worker, a child process speaking JSON lines: finding it, talking to it with cancel and timeouts, quality presets, reading its tessellation files, colours and shared shapes into a raw scene, and reading STEP and IGES headers and colours from the file itself | fsh-core, fsh-io, serde_json |
+| `fsh-render-cpu` | the CPU path tracer, the specification engine: tiles on rayon, next-event estimation, MIS, Russian roulette, environment importance sampling, procedural sky and studio sweep, analytic lights, shadow-catcher ground, thin lens, material programs and textures at every hit with ray-cone footprints, thin film and dispersion, a framebuffer of running sums with progressive passes and a cancel flag, the develop step (exposure; Neutral, AgX, ACES, sRGB and raw transforms) and the a-trous denoiser | fsh-core, fsh-scene, fsh-accel, fsh-materials, rayon |
+| `fsh-render-gpu` | the GPU path tracer on wgpu 30 compute: adapters and refusals, the flat scene buffers, one WGSL megakernel with a software BVH traversal and a ray-query variant, the material program interpreter and textures packed into its tables buffer, thin film and dispersion, the film in row bands, adaptive sampling, reduced-resolution passes and readback through the CPU's develop step (see [`GPU-ENGINE.md`](GPU-ENGINE.md)) | fsh-core, fsh-scene, fsh-accel, fsh-materials, fsh-render-cpu, wgpu, bytemuck, pollster (native), naga (validation feature only) |
+| `fsh-commands` | the one command catalogue (121 entries: 47 document commands from `fsh-scene`, 38 engine commands for the app, selection, history, files, viewing and rendering, 25 commands of the import, cad, handoff, materials and library groups in `src/ext/`, and 11 aliases from its one alias table) and `dispatch(session, name, args)` over an `Engine` session that owns the document, the history, the selected renderer (CPU or GPU behind one `PreviewRenderer` trait), its background render thread, import jobs, the library's thumbnail worker and the crash journal | every crate above; fsh-render-gpu, fsh-cad and pollster natively only |
+| `fsh-cli` | the `formshot-engine` program: `render` (with `--device`), `info`, `convert` (these three with import options), `probe`, `reimport`, `devices`, `bench`, `catalogue`, `dispatch` over JSON lines on stdin (with `--journal`), `version` and `help`. Run so far: the sample scene rendered byte-identical on 1 and 2 threads, a GLB and `.fshot` round trip rendered byte-identical pictures from both files, and `bench` rendered the sample on the CPU, software Vulkan and software OpenGL within 0.00001 of each other | fsh-commands, fsh-io |
| `fsh-py` | the PyO3 module `fsh_py`: `catalogue()` and `Session(journal=None).dispatch(name, args_json)`, behind a feature so the workspace builds without Python | fsh-commands |
| `fsh-wasm` | the wasm-bindgen package for the window: the document and commands in a `Session`, a mirror of the service's document, and `create_viewport`, which runs `fsh-render-gpu` on WebGPU and presents to a canvas | fsh-commands; on wasm32 also fsh-render-cpu, fsh-render-gpu, wgpu (WebGPU), js-sys, web-sys, wasm-bindgen-futures |
-The planned crates and features arrive by phase. The GPU tracer with our own BVH in compute shaders and hardware ray queries (0.3.0) and the WebGPU viewport with a native streamed fallback (0.4.0) are in the tree, with the limits named below. Still to come: more importers and CAD through FormCAD's kernel worker, material presets and the node graph, and the library (0.5.0 to 0.6.0), lighting, cameras, output and the denoisers (0.7.0 to 0.8.0), shots, animation and advanced transport (0.9.0 to 0.10.0), editors and exchange (0.11.0 to 0.12.0), and agents, the render farm and the release (0.13.0 to 0.14.0).
+The planned crates and features arrive by phase. The GPU tracer with our own BVH in compute shaders and hardware ray queries (0.3.0) and the WebGPU viewport with a native streamed fallback (0.4.0) are in the tree, with the limits named below. Import of 3MF and FBX, CAD through FormCAD's kernel worker, family hand-offs, material types, texture slots, the node graph and the library are in the tree too, with the limits their sections name, as are labels, thin film and dispersion, and textures and material programs in both path tracers. Still to come: lighting, cameras, output and the denoisers (0.7.0 to 0.8.0), shots, animation and advanced transport (0.9.0 to 0.10.0), editors and exchange (0.11.0 to 0.12.0), and agents, the render farm and the release (0.13.0 to 0.14.0).
## The document and the command registry
@@ -63,14 +66,14 @@ How each surface gets to the catalogue:
| --- | --- |
| Window | `GET /api/engine/catalogue`; each entry is registered in the command registry as `engine.` and appears in the palette; edits go through `POST /api/engine/dispatch` |
| MCP | `POST /mcp` `tools/list` returns the catalogue as tools with the same dotted names; `tools/call` dispatches through consent |
-| Command line | `formshot-engine catalogue` (or `./formshot cli catalogue`) prints all 88 entries; `formshot-engine dispatch` reads `{"id","name","args"}` lines and answers each with `{id, result}` or `{id, error}` plus `meta: {revision, content_revision}` |
+| Command line | `formshot-engine catalogue` (or `./formshot cli catalogue`) prints all 121 entries; `formshot-engine dispatch` reads `{"id","name","args"}` lines and answers each with `{id, result}` or `{id, error}` plus `meta: {revision, content_revision}` |
| Agent skills | `./formshot agents sync` writes `.claude/skills/formshot-rendering/references/tools.md`, mirrors the skill into `.agents/skills` and writes `agents/manifest.json` |
## The project file
-A `.fshot` file is a stored (uncompressed) ZIP holding a manifest, the scene as JSON, the materials as JSON and the meshes as binary entries. Entries are written in a fixed order with fixed metadata, so saving the same document twice gives the same bytes. Saves go to a temporary file that replaces the old one only when complete. Loading validates the whole tree (every child exists, parent links match, nothing is listed twice or unreachable, part references resolve, every block is in range) and refuses with a readable error. A session keeps an origin copy of the document, a journal of JSON lines recording each resolved command after it, and four rotating snapshots, so a crashed session can be recovered from the journal, a snapshot plus the journal, or the newest snapshot. See `docs/FILE-FORMAT.md` when it is present for the byte layout.
+A `.fshot` file is a stored (uncompressed) ZIP holding a manifest, the scene as JSON, the materials as JSON and the meshes as binary entries. Entries are written in a fixed order with fixed metadata, so saving the same document twice gives the same bytes. Saves go to a temporary file that replaces the old one only when complete. Loading validates the whole tree (every child exists, parent links match, nothing is listed twice or unreachable, part references resolve, every block is in range) and refuses with a readable error. A session keeps an origin copy of the document, a journal of JSON lines recording each resolved command after it, and four rotating snapshots, so a crashed session can be recovered from the journal, a snapshot plus the journal, or the newest snapshot. Materials may carry texture slots and a graph, imported textures travel inside the file as members named by their SHA-256, and STEP or IGES sources are kept under `sources/` so CAD parts can be tessellated again. See [`FILE-FORMAT.md`](FILE-FORMAT.md) for the byte layout and what older engines do with newer files.
-In the projects library each project is a folder `//` holding `project.fshot`, `info.json`, `thumb.webp` and, when a model was imported, `mesh.`. The service moves these bytes and never opens the ZIP.
+In the projects library each project is a folder `//` holding `project.fshot`, `info.json`, `thumb.webp` and, for projects whose model was stored before the import module existed, `mesh.`. Models uploaded from a browser now live in `/.imports//` (kept for Reimport, swept after 24 hours), and images uploaded for slots in `/.textures//`. The service moves these bytes and never opens the ZIP.
## The service
@@ -79,11 +82,12 @@ In the projects library each project is a folder `//` holding `p
- **Guards.** A local guard refuses any Host or Origin that is not this computer. A window key is created at each start and claimed once by the window; every non-read route needs it in `x-formshot-window-key`, and streams and images take a one-time ticket instead. `/api/agent` and `/mcp` are open but go through consent.
- **Engine bridge.** `backend/app/engine.py` tries the `fsh_py` binding first, then runs a `formshot-engine dispatch` child found by `FORMSHOT_ENGINE`, the frozen bundle or `native/target`. Calls are serialised. Errors keep their meaning: refused 422, crashed 502, not built 503, timed out 504, each with a sentence. Nothing is faked when the engine is missing.
- **Render routes.** `/api/render/start`, `status`, `frame` and `stop` pass through to the engine's render commands; `frame` answers the latest PNG, or 204 before the first.
-- **Byte routes for the viewport.** `GET /api/engine/mesh/{key}` answers one mesh as binary (`FSHM` version 1) for the raster modes, and `GET /api/engine/snapshot` answers the current document as `.fshot` bytes with its content revision in a header, for the engine in the window. Both need the window key or a one-use ticket.
+- **Byte routes for the viewport.** `GET /api/engine/mesh/{key}` answers one mesh as binary (`FSHM` version 1, with flags in the high half of the version word for optional uv0 and tangent sections) for the raster modes, and `GET /api/engine/snapshot` answers the current document as `.fshot` bytes with its content revision in a header, for the engine in the window. Both need the window key or a one-use ticket.
- **Engine sessions.** Each time an engine session starts, the stored Rendering preferences (device, viewport quality, adaptive sampling) are sent to it, and the engine keeps its crash journal in `/sessions`.
- **Projects.** `/api/projects` and its Trash, templates and library settings serve Home. Every path goes through a check that refuses anything outside the projects folder.
- **Consent.** Outside agents' changing calls raise a request in the window (deny, once or always). With no live window the request is refused at once. Read-only commands and the app's own dock tabs skip the prompt; Blocked refuses everyone.
-- **Agent bus.** `/api/commands` and `/api/events` carry the dock's terminals, Claude Code, Codex, Cursor and Antigravity tabs, Chat and preferences.
+- **Agent bus.** `/api/commands` and `/api/events` carry the dock's terminals, Claude Code, Codex, Cursor and Antigravity tabs, Chat and preferences. Engine commands that outside agents send through `/api/agent` or MCP are relayed on `/api/events` as `scene.changed`, `selection.changed`, `history.changed` or `document.changed` (`Engine.dispatch_outside`), so the window follows them at once.
+- **Import, CAD, hand-off, texture and library routes.** `/api/imports` takes model uploads and expands dropped folders; `/api/cad/worker` reports and fetches the CAD worker with a pinned, hash-checked record; `/api/handoff/*` watches the family's hand-off folders and holds each arrival for the person's answer; `/api/textures` takes slot images; `/api/library/*` serves preset thumbnails from the engine's cache without holding the engine lock. All writes need the window key.
- **Folders.** Data in `FORMSHOT_DATA` (else `~/FormShot` when frozen, else `/workspace`); projects in `FORMSHOT_PROJECTS` (else `~/Documents/FormShot`).
## The window
@@ -92,7 +96,7 @@ In the projects library each project is a folder `//` holding `p
- **Frame.** `index.html` holds every slot with a fixed id and a pre-paint script that applies the theme, accent and layout before the first frame. The app stays hidden until every module has mounted, then appears once.
- **Registry.** `src/shell/registry.ts` holds commands, menus, panels, inspector pages, settings pages and top bar buttons. Menus, the palette, shortcuts and `data-cmd` buttons all run commands. Each slot has one owner.
-- **Modules.** `src/modules.ts` lists the entry modules: the workspace (`src/ui/workspace.ts`), Preferences (`src/shell/settings.ts`), menus and the top bar (`src/shell/topbar.ts`), the dock (`src/shell/dock-adapter.ts`) and Home (`src/shell/home.ts`).
+- **Modules.** `src/modules.ts` lists the entry modules: the workspace (`src/ui/workspace.ts`), Preferences (`src/shell/settings.ts`), menus and the top bar (`src/shell/topbar.ts`), the dock (`src/shell/dock-adapter.ts`), Home (`src/shell/home.ts`), import (`src/ui/import/`), hand-offs (`src/ui/handoff/`) and CAD (`src/ui/cad/`). The workspace mounts the Material inspector page (`src/ui/pages/material.ts` over `src/ui/material/`), the graph editor window (`src/ui/graph/`) and the library panel (`src/ui/library/`).
- **Engine client.** `src/engine/client.ts` reads the catalogue, dispatches, tracks the engine's state (connecting, ready, unavailable, offline) and keeps the scene summary; `src/engine/render.ts` runs the streamed preview over the render routes; `src/engine/raster/` is the WebGL2 renderer and `src/engine/gpu/` the optional WebGPU engine. The engine folder draws only into canvases it is given and never builds UI.
- **Viewport.** Rendered mode shows the path tracer; Solid, Wireframe and Material preview (the modes planned for 0.4.0) are drawn in the window with WebGL2; picking, the selection outline, the gizmo, navigation presets, framing and guides work in every mode. See [The live viewport](#the-live-viewport).
- **Dock.** `src/dock/` is the family's shared agent dock 2.2.1, copied unchanged from FormVis; `src/shell/dock-adapter.ts` connects it to the service.
@@ -121,12 +125,60 @@ In the projects library each project is a folder `//` holding `p
- **The path tracer in the window.** When `./formshot engine wasm` has built the package and the browser has WebGPU, the window runs `fsh-render-gpu` itself through `fsh-wasm`, on a mirror of the service's document loaded from the snapshot route. A guard gives the first kernel compile and first pass 45 s; on timeout, error or device loss the window falls back to streamed frames and says why. It has not drawn a frame on any machine yet: software WebGPU runs out of memory compiling the kernel, and no browser with a real GPU was available.
- **Streamed frames, the fallback.** The engine renders natively (CPU or GPU) and the window shows its frames from `/api/render/*`. This is the working path today.
- **Interaction regimes.** `render.interaction` tells the engine the camera is moving: 1-sample passes at a reduced resolution sized to the frame budget (Viewport quality: 16, 33 or 66 ms), then a ladder of 0.25, 0.5 and full resolution 150 ms after the last move, then accumulation until settled.
-- **Invalidation levels.** Commands report `none`, `display` (re-develop, keep samples), `region` (the CPU clears only the screen rectangle of the parts using an edited material) or `full`; camera moves write only the camera block. `scene.summary` carries a `content_revision` that camera moves do not change.
+- **Invalidation levels.** Commands report `none`, `display` (re-develop, keep samples), `region` (both engines clear only the screen rectangle of the parts using an edited material, padded by 6 pixels, and keep every other pixel's samples; this holds also when the edit adds a material, as `library.apply` does: the CPU through `changed_instances`, the GPU through `GpuRenderer::update_region`) or `full`; camera moves write only the camera block. `scene.summary` carries a `content_revision` that camera moves do not change.
## The crash journal
The engine now drives `fsh-format`'s journal. The service starts it with `/sessions` (`formshot-engine dispatch --journal`, or `fsh_py.Session(journal)`); every editor mutation is recorded after it applies, with snapshots every 100 entries. `file.recover_list` lists sessions left behind with their command counts and any journal error, and `file.recover {session}` restores the document and its undo history from the journal, a snapshot plus the journal, or the newest snapshot. Killing the engine mid-session and recovering through these commands has been run; the window has no recovery dialog yet, so recovery goes through the palette, MCP or the command line. The window's WebAssembly session keeps no journal.
+## Command groups
+
+Commands added from the import work on live in `native/crates/fsh-commands/src/ext/`, one module per group, so that groups can be written side by side without touching the same lines:
+
+| Module | Commands |
+| --- | --- |
+| `ext/import.rs` and `ext/import/` | `import.probe`, `import.start`, `import.status`, `import.cancel`, `file.reimport`; the schemas of `file.import` and `file.open` |
+| `ext/cad.rs` | `cad.status`, `cad.parts`, `scene.retessellate` |
+| `ext/handoff.rs` | `handoff.inspect`, `handoff.open` |
+| `ext/materials.rs` | `material.types`, `material.node_kinds`, `material.program`, `material.preview_maps`, `material.labels`, `material.get` |
+| `ext/library.rs` and `ext/library/` | `library.list`, `library.get`, `library.favorite`, `library.recent`, `library.apply`, `library.save`, `library.remove`, `library.thumbnail`, `library.thumbnails` |
+
+Each module fills `COMMANDS` (name, description, change level, mutates, read only, a schema function) and answers its names in `dispatch`, returning `None` for any other; `ext::commands()` chains the groups into the catalogue after the engine commands, and `Engine::dispatch_value` routes their names to `ext::dispatch`. A group reaches the session through a few `pub(crate)` helpers of `engine.rs`: `changed` (apply an outcome's change level), `refresh_render`, `import`, `install_editor`, the `State` fields and the journal notes. Commands that change the document as data (`material.set_slot`, `material.set_graph`, `scene.set_part_mesh` and the rest) stay in `fsh-scene`'s table, so they are undoable and journalled like every other edit. Each module was reserved as an empty file before its owner started, so ownership was decided by path.
+
+## Import
+
+[`IMPORT.md`](IMPORT.md) has the detail. The flow:
+
+1. **Read.** `fsh_io::read_any` picks a reader by content, then extension (glTF/GLB, OBJ, STL, PLY, 3MF, FBX natively); STEP and IGES go to `fsh-cad` instead. Readers give a `RawScene`: nodes, meshes, materials with texture slots, images inside the file.
+2. **Clean.** The shared pass validates, welds, makes normals and MikkTSpace tangents, finds repeated parts (also rotated or mirrored), resolves units (option, declared, else a guess with a confidence) and the up axis, and stands the model on the floor.
+3. **Prepare.** `ext/import/run.rs::prepare` converts to one `scene.import` payload, wraps or merges the top nodes, records `source.path`, `source.node` and `source.options` in node metadata, and embeds the textures it can read as `fshot:textures/...` members. It never touches the document.
+4. **Apply.** `apply` runs the payload, the root rename and framing in one history group, so an import is one undo step and one journal command, then reports the change.
+
+`file.import` runs all four at once. `import.start` runs steps 1 to 3 on a worker thread against an empty document (CAD reads included, with cancel killing the worker) and answers `{job}`; the next engine call applies a finished job unless a history group is open; `import.status` reports stage and fraction; `import.cancel` and a document change (new, open, close, recover) leave the document untouched. `file.reimport` reads the sources again and matches parts by `source.node`, a unique name, then a unique shape, swapping meshes with `scene.set_part_mesh` so part ids stay. In the window the import module probes, shows the sheet, uploads in a browser (`/api/imports`) or passes the real path on the desktop, and polls the job.
+
+## CAD and family hand-offs
+
+STEP and IGES are read by FormCAD's kernel worker (OpenCascade), started as a child process by `fsh-cad` and spoken to in JSON lines; the engine never downloads it. It is found through `FORMSHOT_CAD_WORKER`, beside the program, or in `/formshot/workers//`, where the service's `POST /api/cad/worker/fetch` or `./formshot cad fetch` puts it after checking every file against a pinned record. CAD imports keep their source in the project, tag parts with `cad.*` metadata, and `scene.retessellate` rebuilds their meshes at another quality without changing part ids.
+
+FormSculpt and FormFabric hand over through GoF folders, FormSurface through map folders, and FormCAD through its GLB and 3MF exports; `fsh_io::family` recognises each. The service watches the GoF folder and FormSurface's exports while the window is open, holds each arrival, and the window asks the person (decline, open once, always allow that app); `handoff.open` then brings it in as one undo step, with FormSurface's maps as document textures. Outside agents reach the same commands through MCP and its consent.
+
+## Materials from the document to the tracers
+
+[`MATERIALS.md`](MATERIALS.md) has the detail. The pipeline:
+
+1. **Document.** A `Material` holds a type id (one of 18 presets of one OpenPBR-style surface model), `params`, optional texture `slots` keyed by material input, and an optional `graph` of nodes (textures, mapping, maths, ramps, normal map, bump and ten procedural patterns), and an ordered list of `labels` (images projected onto the part).
+2. **Compile.** `fsh_scene::compile_material` turns slots and graph into a `fsh_materials::Program`: graph outputs win over slots, slots over constants; pure operations are folded, dead code dropped, at most 32 vec4 registers allocated. A material with nothing that varies compiles to a constant program whose `base` is exactly the old per-material inputs.
+3. **Snapshot.** `flatten()` gives each `RenderMaterial` its `Arc` and lists the textures programs sample as `RenderTexture`s, deduplicated by path and colour space.
+4. **Textures.** `fsh_commands::textures` decodes each `RenderTexture` once (fsh-io's `decode_image`: PNG, JPEG, HDR, EXR), builds mips, and hands the resulting `TextureSet` to the running renderer through `PreviewRenderer::set_textures` when the list or a file changes, restarting the picture; missing images sample their slot's fallback with a warning in `render.status`.
+5. **Tracers.** The CPU tracer builds a `HitContext` per hit (with a ray-cone footprint) and calls `Program::evaluate` with the `TextureSet`; constant materials take `program.base` and never run the interpreter. The GPU tracer packs the same set and every program's `encode_f32()` blob into its existing `tables` buffer (no new binding), runs the same opcodes in `program.wgsl` (with `procedural.wgsl` and `texture.wgsl`), and leaves the interpreter out of the kernel when no material needs it; a program it cannot run, or textures that do not fit, send the job to the CPU. Thin film and dispersion are per-material constants applied after the program in both.
+6. **Preview.** `material.preview_maps` bakes a program on a 1 m square into base colour, roughness, metalness and normal maps, which the window's Material preview mode samples by mesh uv0, sampling the engine's loaded textures through the same cache.
+
+The window edits materials through the Material page (types, parameters, slots) and the graph editor, both by document commands, so every edit is undoable.
+
+## The material library
+
+[`LIBRARY.md`](LIBRARY.md) has the detail. 249 presets live as JSON files in `assets/library/materials//` with a generated `index.json` that lists each file's SHA-256; every number is traced to measured data (refractiveindex.info, CC0), a published table, or an authored choice named in the file. The engine's `library.*` commands find the library (`FORMSHOT_LIBRARY`, the app's bundled resources, or `assets/library` above the program), check the index against every file, search and rank, keep favourites, recent presets and the user's own presets in the user data folder, and apply a preset as one undo step (type defaults, then the preset's values, then the type's graph tuned to it). Thumbnails are rendered by the CPU tracer on FormShot's own material ball on a background thread and cached by preset hash; the service serves them, and the window's virtual grid asks only for tiles in view.
+
## Ports and processes
| Port or name | What |
diff --git a/docs/FILE-FORMAT.md b/docs/FILE-FORMAT.md
index 53af9694..aace0ce3 100644
--- a/docs/FILE-FORMAT.md
+++ b/docs/FILE-FORMAT.md
@@ -31,9 +31,10 @@ Members are always written in this order:
| 2 | `scene.json` | the document without meshes and materials |
| 3 | `materials/.json` | one material per member, ascending key |
| 4 | `meshes/.fshmesh` | one binary mesh per member, ascending key |
-| 5 | `textures/-.` | embedded texture files the scene references, ascending name |
-| 6 | `preview.png` | optional preview picture |
-| 7 | anything else | members from a newer writer, kept unchanged, ascending name |
+| 5 | `textures/.` (or the older `textures/-.`) | embedded texture files the scene references, ascending name |
+| 6 | `sources/.` | kept STEP and IGES files some node still refers to, ascending name; only when there are any |
+| 7 | `preview.png` | optional preview picture |
+| 8 | anything else | members from a newer writer, kept unchanged, ascending name |
When a kept member has the same name as one the writer produces, the writer's own member wins.
@@ -52,6 +53,7 @@ Every JSON member is canonical: UTF-8, two-space indentation, object keys sorted
| `meshes` | mesh keys, ascending, as decimal strings |
| `materials` | material keys, ascending, as decimal strings |
| `textures` | embedded texture member paths, ascending |
+| `sources` | kept CAD source member paths, ascending; the field is left out when there are none |
| `preview` | `"preview.png"`, or null when there is none |
| other fields | kept verbatim from a newer writer |
@@ -61,11 +63,22 @@ The scene member is the document's stored form without its meshes and materials,
Each node carries its name, kind (group, part, light or cutaway), parent, children, local transform, visibility, lock, ray visibility, optional part colour, metadata and optional pivot. Transforms are translation, rotation as a quaternion in x, y, z, w order, and scale, applied as translation times rotation times scale.
-The environment source is one of `sky` (procedural sky parameters), `hdri` (a path to an equirectangular image), `uniform` (one colour) or `studio` (the renderer's built-in studio sweep). Files from before the studio source existed simply never contain it.
+The environment source is one of `sky` (procedural sky parameters), `hdri` (an equirectangular Radiance HDR or OpenEXR image: a `fshot:textures/...` member when the engine embedded it, else a path), `uniform` (one colour) or `studio` (the renderer's built-in studio sweep). Files from before the studio source existed simply never contain it.
### materials/<key>.json
-One material: `name`, `type_id` (generic, plastic, metal, glass, paint and so on), `params` with every surface parameter written out explicitly, and `textures` (texture keys). The surface parameters follow the layered model of OpenPBR Surface: base, specular, transmission, subsurface, coat, fuzz, thin film, emission and geometry groups. Unknown fields are kept per material.
+One material: `name`, `type_id` (one of the 18 material types: generic, plastic, plastic_clear, metal, metal_brushed, paint, paint_metallic, glass, glass_thin, liquid, gem, rubber, fabric, ceramic, diffuse, emissive, wood, stone), `params` with every surface parameter written out explicitly, `textures` (texture keys), and three optional fields, `slots`, `graph` and `labels`. The surface parameters follow the layered model of OpenPBR Surface: base, specular, transmission, subsurface, coat, fuzz, thin film, emission and geometry groups. Unknown fields are kept per material. The fields a reader treats as known are listed in fsh-scene's `MATERIAL_FIELDS`.
+
+`slots` and `graph` are left out entirely when empty, so a material without them encodes to the same bytes as before they existed. [`MATERIALS.md`](MATERIALS.md) describes what they mean; their stored form:
+
+| Field | Form |
+| --- | --- |
+| `slots` | an object keyed by material input name (`base_color`, `specular_roughness`, `base_metalness`, `specular_weight`, `coat_weight`, `coat_roughness`, `emission_color`, `geometry_opacity`, `normal`, `bump`, `displacement`), each value a texture slot: `texture` (a texture key), `projection` (`{"kind": "uv", "set": 0}`, `{"kind": "box", "blend": 0.5}`, `{"kind": "planar"}`, `{"kind": "cylindrical"}` or `{"kind": "spherical"}`), `transform` (`offset` [u, v], `scale` [u, v], `rotation` in radians, `space` object or world), `wrap` (repeat, clamp, mirror), `filter` (nearest, bilinear, trilinear), `colour_space` (srgb, linear, acescg, data, or null for the input's default), `channel` (rgb, r, g, b, a, luminance), `range` [low, high], `invert`, `multiply`, `strength`, `flip_y` and `fallback` (an RGBA texel or null) |
+| `graph` | `nodes`, an object keyed by node id as a decimal string, each node holding `kind`, its settings, `inputs` (unlinked values: a number or [r, g, b]), `position` [x, y] and `label`; `links`, a list of `{"from": [node, "socket"], "to": [node, "socket"]}` sorted by target then source; `outputs`, an object keyed by material input name whose values are `[node, "socket"]` |
+
+Both are written in a stable order (sorted keys, sorted links), so a graph saves to the same bytes every time.
+
+`labels`, also left out when empty, is a list in print order (later labels print over earlier ones). Each label: `id` (unique non-zero within the material), `name`, `texture` (a texture key or null), `colour_space` (or null), `origin`, `normal` and `up` ([x, y, z] in the object space of the part wearing the material, metres), `size` ([width, height], metres), `rotation` (radians about the normal), `depth` (metres), `opacity` (0 to 1), `two_sided`, `visible`, `roughness` and `metalness` (0 to 1, or null to leave the surface's). A load refuses zero or negative sizes and depth, a normal parallel to up, values out of range and duplicate ids; unknown label fields in a file do not make the load fail (commands, by contrast, refuse them). A label's image is listed in the material's `textures` like a slot's.
## Mesh members (mesh layout 1.0)
@@ -102,7 +115,41 @@ For layout 1.0 the member length must be exactly 64 + N rounded up to 4 + 4 byte
## Embedded textures
-A texture file can travel inside the project. It is stored as `textures/<16 lowercase hexadecimal digits of its FNV-1a 64 hash>-.`, where the extension is one to eight lowercase letters or digits, and the texture reference's path becomes `fshot:textures/...`. A save writes only the textures the scene references and fails if a referenced texture has no bytes. A load checks every listed texture's hash and length against its name and refuses an `fshot:` reference whose member is missing. Any other path is an external reference and is left untouched. Engine 0.2.0 does not produce embedded textures yet.
+A texture file can travel inside the project. It is stored as `textures/.`, where the extension is one to eight lowercase letters or digits, and the texture reference's path becomes `fshot:textures/...`. Members written by earlier engines are named `textures/<16 lowercase hexadecimal digits of the FNV-1a 64 hash>-.`; a load accepts both and checks each against its name (SHA-256 for the new form, hash and length for the old). An embedded texture may hold at most 256 MiB. A save writes only the textures the scene references and fails if a referenced texture has no bytes. A load refuses an `fshot:` reference whose member is missing. Any other path is an external reference and is left untouched.
+
+Model imports embed the textures they find: PNG, JPEG, Radiance HDR and OpenEXR files beside the model or inside it (GLB buffers, data URIs, 3MF package parts, FBX embedded content), deduplicated by content. Other image formats are skipped; files above the cap stay referenced by their absolute path; missing files keep their reference, made absolute inside the model's folder, and their slots sample the fallback. Images named by path in a command are embedded when the command runs, not at save time: `material.set_slot {path}`, `material.label_add` and `material.label_set {path}`, `texture.add {texture: {path}}`, and `environment.set` with an HDRI source rewrite the path to `fshot:textures/.` and keep the bytes, so the resolved command in the journal and the saved file both name the member. The same rules apply: PNG, JPEG, Radiance HDR or OpenEXR content of at most 256 MiB; a missing file, another format or a larger file keeps its path as given (relative paths start at the document's folder). A save writes every member a texture reference names, plus the member an embedded environment names, which is not a material texture.
+
+## Kept CAD sources
+
+A STEP or IGES file imported through the CAD worker is kept inside the project, so its parts can be tessellated again at another quality after the original file is moved or deleted. It is stored as `sources/<16 lowercase hexadecimal digits of its FNV-1a 64 hash>.` and listed in the manifest's `sources` field; the part nodes name it in their metadata as `source.cad: "fshot:sources/..."`. A load checks the name, that the member holds at most 64 MiB, and that its hash matches the name. A source above 64 MiB is not kept; its parts name the absolute path instead. A save writes only the sources that some node's metadata names; the running session keeps every source it has seen, so undoing the removal of a CAD part and saving again writes its source back.
+
+## Metadata written by imports
+
+Imports, re-imports and hand-offs record where nodes came from in each node's `metadata` map (string keys and string values), which older readers keep like any other metadata:
+
+| Key | On | Meaning |
+| --- | --- | --- |
+| `source.path` | every imported node | absolute path of the model file (or of the folder for maps only) |
+| `source.node` | every imported node | the node's path inside the file, names joined by `/`; empty for a group holding the whole file |
+| `source.options` | the import's top nodes | the geometry options with the resolved units and up axis, as JSON |
+| `source.missing` | parts a re-import hid | `"true"` until the part returns |
+| `source.cad`, `cad.mesh`, `cad.quality`, `cad.unit`, `cad.up` | CAD parts | the kept source (or path), the body and slot, the tessellation quality (a preset name or `chord,angle`), unit and up axis |
+| `source.app`, `source.handoff`, `source.title`, `source.writer`, `source.folder`, `source.design_unit`, `source.gof.*`, `source.template`, `source.maps` | hand-offs | which Form app wrote it, how it arrived, and every FormSurface map with its role |
+| `material.vertex_colours` | parts | `multiply`: the mesh's vertex colours multiply the base colour |
+| `material.alpha_cutoff` | parts | the glTF mask cutoff, kept for a later hard cutoff |
+
+## Newer files in older engines
+
+The format version stays 1.0.0: every addition is optional and older files load unchanged and resave to the same bytes. What an engine from before each addition does with a file that uses it:
+
+| Addition | Older engine |
+| --- | --- |
+| `slots`, `graph` and `labels` on a material | keeps them as unknown material fields and writes them back unchanged; renders the material from its constant parameters |
+| `sources/` members and the manifest's `sources` | keeps them as unknown members and fields and writes them back; cannot tessellate again |
+| texture members named by SHA-256 | refuses the file: its loader reports that the member "is not named -". Files without embedded textures are not affected |
+| import metadata keys | keeps them; they are plain node metadata |
+| an environment naming a `fshot:textures/...` member | refuses the file for the SHA-256 member name above; an engine that accepts the name but predates embedded environments treats the member name as a path on disk and cannot load the image |
+
## What a load checks
@@ -136,6 +183,7 @@ While a document is open, a session can keep enough on disk to rebuild it after
| `origin-.fshot` | the document the journal continues from (generation g) |
| `journal.jsonl` | append-only, one compact canonical JSON object per line |
| `snapshot-<0..3>.fshot` | four rotating background snapshots |
+| `sources/.` | kept CAD sources, each written once, named and checked as project members; recovery puts them back into the document's project |
### Journal lines
diff --git a/docs/GPU-ENGINE.md b/docs/GPU-ENGINE.md
index ec532ec5..e5aa1fa3 100644
--- a/docs/GPU-ENGINE.md
+++ b/docs/GPU-ENGINE.md
@@ -8,7 +8,7 @@ The engine has run only on software implementations: Vulkan on lavapipe (Mesa's
## Shape
-- **One megakernel.** One invocation is one pixel taking its samples in order (`@workgroup_size(8, 8)`). The host dispatches once per band of rows. Materials are data, parameter records in a buffer, so changing a material never compiles a shader.
+- **One megakernel.** One invocation is one pixel taking its samples in order (`@workgroup_size(8, 8)`). The host dispatches once per band of rows. Materials are data, parameter records in a buffer, and texture slots, graphs and labels are a material program the kernel interprets from the `tables` buffer, so changing a material never compiles a shader (a scene that starts using programs compiles the interpreter variant once).
- **Two traversal paths behind one interface.** Every module calls `trace_closest(ray, mask) -> TraceHit` and `trace_occluded(ray, mask) -> bool`. The software path walks FormShot's own two-level BVH, flattened from `fsh-accel` into storage buffers; it runs wherever compute runs (Vulkan, Metal, Direct3D 12, OpenGL with compute, WebGPU). The hardware path uses ray queries over acceleration structures built by the driver, where the adapter offers them.
- **Bands.** The film is split into row bands that each fit one storage binding (2048 by 1536 needs two at 128 MiB). Natively a pass is split further into dispatches of about 0.1 s over interleaved rows, checking the cancel flag between them, so no dispatch runs long enough to trip an operating system's GPU watchdog.
- **Readback.** The film holds the same running sums as the CPU's `PixelSums`. Develop (exposure, tone map, denoise) runs through `fsh-render-cpu`'s own develop step after a readback; in the window the WebAssembly build resolves and tone maps on the GPU instead.
@@ -26,6 +26,8 @@ Measured at 320 by 240, 16 samples per pixel, against the CPU on 2 threads:
| glass (rough, tinted and thin-walled spheres) | 0.00001 | 0.00001 | 0.000011 |
| sky and sun with a thin lens | 0.00000 | 0.00000 | 0.000001 |
+Material programs, textures and optics, against the CPU on lavapipe at 320 by 240 and 16 samples: a scene with a uv checker, a normal map with roughness from alpha, box-projected colour and bump and a spherical checker (128 px textures with mips) 0.000083, the same with ray queries and with software traversal; soap bubbles 0.00001; anodised titanium and pearl paints 0.00001; a flint prism and a diamond 0.00000; a rough prism 0.00007. On llvmpipe GL: bubbles 0.00001, the prism 0.00000. Program evaluation alone, compared value by value with the CPU interpreter over 77 programs, agrees within 1.4e-5 except bump through cylindrical and spherical projections, where finite-difference heights make the CPU itself move by more for a one-ulp change of the hit.
+
The residual sits on the horizon rows: last-bit rounding of near-horizontal camera rays, and with ray queries the shadow catcher's grazing occlusion probes. A change to sampling, lights or materials lands on the CPU first and is then ported.
## Bind groups
@@ -34,15 +36,15 @@ Twelve bindings in at most three groups. The scene and film groups use exactly 8
| Group | Binding | WGSL | Element | Holds |
| --- | --- | --- | --- | --- |
-| 0 | 0 | `var frame: Frame` | 288 B | camera, film, settings, counts, offsets and the render region |
+| 0 | 0 | `var frame: Frame` | 304 B | camera, film, settings, counts, offsets, the render region and the texture directory offset |
| 0 | 1 | `var sobol: Sobol` | 8192 B | Sobol direction numbers, 64 dimensions by 32 bits |
| 0 | 2 | `var nodes: array` | 32 B | top level, then every mesh's nodes |
| 0 | 3 | `var tris: array` | 48 B | object-space corners in leaf order |
-| 0 | 4 | `var verts: array` | 16 B | authored vertex normals |
+| 0 | 4 | `var verts: array` | 16 B | per-vertex attribute slots: authored normals, and uv sets and tangents of meshes that run a material program |
| 0 | 5 | `var instances: array` | 128 B | placed instances |
-| 0 | 6 | `var materials: array` | 144 B | surface parameter records |
+| 0 | 6 | `var materials: array` | 160 B | surface parameter records with program offsets, thin film and dispersion |
| 0 | 7 | `var lights: array` | 96 B | lamps, sun and the emissive group |
-| 0 | 8 | `var tables: array` | 4 B | environment, BSDF energy and emissive tables |
+| 0 | 8 | `var tables: array` | 4 B | environment, BSDF energy, textures, material programs and emissive tables |
| 1 | 0 | `var band: Band` | 48 B in a 256 B slot | the band and the adaptive settings |
| 1 | 1 | `var accum: array` | 64 B | the band's running sums |
| 2 | 0 | `var tlas: acceleration_structure` | | ray-query variant only |
@@ -53,7 +55,7 @@ Every buffer holds at least one zeroed element. Counts come from the Frame, neve
Offsets are in bytes; `vec3` fields take 12 bytes and share their 16-byte row with the scalar after them.
-**Frame (288).**
+**Frame (304).**
| Offset | Fields |
| --- | --- |
@@ -75,6 +77,7 @@ Offsets are in bytes; `vec3` fields take 12 bytes and share their 16-byte row wi
| 240 | bsdf_cond, bsdf_cond_avg, bsdf_diel, bsdf_sheen (float offsets into `tables`) |
| 256 | flags (bit 0 BSDF tables present, bit 1 acceleration structure bound, bit 2 adaptive sampling on, bit 3 render region on), revision, samples, pass_index |
| 272 | region_x0, region_y0, region_x1, region_y1 (film pixels; with flag bit 3, pixels outside return at once) |
+| 288 | textures (float offset of the texture directory in `tables`, NONE when the scene samples no texture), pad0, pad1, pad2 |
The first 76 bytes are the camera block: a camera move writes only those. Camera values are derived exactly as the CPU's `CameraModel` derives them.
@@ -82,7 +85,16 @@ The first 76 bytes are the camera block: a camera move writes only those. Camera
**Triangle (48).** c0, i0, c1, i1, c2, i2: object-space corners with each corner's vertex index within its mesh (for normals, `verts[instance.vertex_base + i]`). With a 16-byte stride, `tris` doubles as the vertex buffer of the ray-query structures.
-**Vertex (16).** normal (vec3), pad. Meshes without authored normals have `vertex_base` NONE and use the geometric normal, as on the CPU.
+**Vertex (16).** One attribute slot, `v: vec4`. A mesh owns `stride * vertex_count` slots from its instance's `vertex_base`, vertex i at `vertex_base + i * stride`, and the instance flags say which slots exist, in this order:
+
+| Slot | Present when | Holds |
+| --- | --- | --- |
+| normal | flag bit 3 (`INST_NORMALS`) | authored normal xyz, 0 |
+| uv sets 0 and 1 | uv set count (flags bits 4 to 6) at least 1 | (u0, v0, u1, v1) |
+| uv sets 2 and 3 | uv set count at least 3 | (u2, v2, u3, v3) |
+| tangent | flag bit 7 (`INST_TANGENTS`) | tangent xyz, handedness sign |
+
+Uvs are packed as the mesh stores them (v up). Uv sets and tangents are packed only for meshes worn by an instance whose material program is not constant, so a scene without programs keeps one slot per vertex with authored normals and none without; a mesh with normals, one uv set and tangents takes three. Meshes with no slots have `vertex_base` NONE and use the geometric normal, as on the CPU.
**Instance (128).**
@@ -91,9 +103,9 @@ The first 76 bytes are the camera block: a camera move writes only those. Camera
| 0 | world: three vec4 rows of local to world (w is the translation) |
| 48 | inv: three vec4 rows of world to local |
| 96 | tint (vec3, valid with flag bit 2), material |
-| 112 | root (absolute mesh root node, NONE for an empty mesh), vertex_base, mask (camera 1, shadow 2, diffuse 4, glossy 8, transmission 16), flags (bit 0 flips handedness, bit 1 in the top tree, bit 2 has tint) |
+| 112 | root (absolute mesh root node, NONE for an empty mesh), vertex_base, mask (camera 1, shadow 2, diffuse 4, glossy 8, transmission 16), flags (bit 0 flips handedness, bit 1 in the top tree, bit 2 has tint, bit 3 authored normals, bits 4 to 6 uv set count 0 to 4, bit 7 tangents) |
-**Material (144).** The sanitized surface inputs of `fsh-materials`: base colour and weight, specular colour, metalness, transmission colour, diffuse roughness, coat colour, specular weight, fuzz colour, specular roughness, emission (already in scene units), specular ior, anisotropy, transmission weight, coat weight and roughness, coat ior, fuzz weight and roughness, opacity, then thin_walled, eta, program (reserved for bytecode materials) and flags. The records are the snapshot's materials, then the default material, then the ground.
+**Material (160).** The constant block of the material's compiled program (`program.base`, which for a material without slots, graph or labels equals the sanitized parameters), as the sanitized surface inputs of `fsh-materials`: base colour and weight, specular colour, metalness, transmission colour, diffuse roughness, coat colour, specular weight, fuzz colour, specular roughness, emission (already in scene units), specular ior, anisotropy, transmission weight, coat weight and roughness, coat ior, fuzz weight and roughness, opacity, then thin_walled, eta, program (the float offset in `tables` of the material's encoded program, NONE for a constant or refused program) and flags (bit 0 `MAT_PROGRAM`: run the program), then at 144 to 160 film_weight, film_thickness (micrometres), film_ior and dispersion (the Cauchy slope; 0 for none), written from the material's parameters, never by a program. Materials that share one program share one blob. The records are the snapshot's materials, then the default material, then the ground.
**Light (96).** kind (0 rectangle, 1 disc, 2 point, 3 sphere, 4 spot, 5 directional, 6 sun, 7 the emissive group), flags (camera, specular, lights surfaces, shadows, two-sided), prob and cdf (the CPU's selection table), then emission and area, position and radius, u and cos_inner, v and cos_outer, normal and importance.
@@ -103,24 +115,28 @@ The first 76 bytes are the camera block: a camera move writes only those. Camera
## The tables buffer
-One `array` holds three blocks, each found through Frame offsets:
+One `array` holds five blocks in this order, each found through Frame or material offsets. All integers stored in it are exact floats below 2^24.
| Block | Contents |
| --- | --- |
| Environment | pixels (width by height by 3, row 0 at the zenith, before the scale), the luminance function, the row CDFs (width + 1 per row) and the marginal (height + 1) |
| BSDF energy | a 16-word header (magic "FSBT", version 1, dimensions, offsets), then conductor `[32 roughness][32 mu]`, its average `[32]`, dielectric `[2 sides][16 eta][32 roughness][32 mu][reflect, transmit]` and sheen `[16 roughness][32 mu]`: 67,120 floats |
+| Textures | at `Frame.textures` = D, offsets inside relative to D: `[N, lut, 0, 0]`; N records `[levels, colour space (0 srgb, 1 linear, 2 acescg, 3 data), storage (0 rgba8, 1 rgbaf32, 2 opaque rgb8), first level record]`; level records `[width, height, texel offset >> 16, texel offset & 0xffff]`; the 256 floats of the sRGB decode table; texels, rgba8 as two floats `r + 256 g` and `b + 256 a`, rgbaf32 as four, and storage 2 (an 8-bit image whose alpha is 255 in every level) as one float `r + 256 g + 65536 b`, which halves the memory of opaque images (three Khronos samples that the 128 MiB binding of lavapipe refused now fit). A missing image, or one whose first level is malformed, has 0 levels and samples the fallback; levels after a malformed one are left out, as on the CPU. The block is the engine's `TextureSet`, in the snapshot's texture order, packed by `texpack.rs` |
+| Programs | each non-constant material's `Program::encode_f32()` blob (see [`MATERIALS.md`](MATERIALS.md)), pointed at by its record's `program` |
| Emissive | a header (count and offsets), the triangle CDF, 20-float records (three corners, normal, area, emission, probability, instance, slot, two-sided) and per-instance slot maps |
+`GpuRenderer::set_textures(Option)` repacks the texture block and resets the film; a material edit rewrites the program blobs; an environment change moves every later offset and so rewrites the material records; a change in which meshes need uv sets rebuilds geometry.
+
## Shader modules
-Twenty-one WGSL files live in `src/shaders/`, embedded into the binary and assembled by an `#include "file"` preprocessor (include once, `enable` lines hoisted to the top). During development `RendererOptions::shader_dir` loads them from a folder without rebuilding.
+Twenty-four WGSL files live in `src/shaders/`, embedded into the binary and assembled by an `#include "file"` preprocessor (include once, `enable` lines hoisted to the top). During development `RendererOptions::shader_dir` loads them from a folder without rebuilding.
| Module | Holds |
| --- | --- |
| `bindings.wgsl` | constants, every struct, groups 0 and 1, run-time infinity, mask and instance helpers |
| `bindings_hw.wgsl` | `enable wgpu_ray_query;` and group 2 |
| `math.wgsl` | pure helpers with no bindings: NaN-safe min, max and clamp, an accurate `sin_cos`, frames, warps, MIS heuristics, ray offset |
-| `features.wgsl` | the override constants `USE_LAMPS`, `USE_CATCHER`, `USE_NORMALS` |
+| `features.wgsl` | the override constants `USE_LAMPS`, `USE_CATCHER`, `USE_NORMALS`, `USE_PROGRAMS` |
| `sampler.wgsl` | the sampler, bit-identical to `fsh-core` |
| `traverse_common.wgsl` | slab test, watertight triangle test, ray validity, world normal |
| `traverse_sw.wgsl` | the software two-level BVH traversal with an ordered 64-entry stack |
@@ -128,12 +144,15 @@ Twenty-one WGSL files live in `src/shaders/`, embedded into the binary and assem
| `trace.wgsl`, `trace_hw.wgsl` | one-line indirections; the assembler swaps one for the other to make the hardware kernel |
| `camera.wgsl` | pixel filters, pinhole, thin lens and orthographic rays |
| `env.wgsl` | environment evaluation, pdf and sampling |
-| `surface.wgsl` | ray spawning, hit points, shading normals, tinted inputs, counted traces |
+| `surface.wgsl` | ray spawning, hit points, shading normals from the strided vertex slots, `hit_ctx` and `shade_inputs` (the program, then the tint), counted traces |
+| `texture.wgsl` | `tex_sample`: the texture directory, nearest, bilinear and trilinear filtering, repeat, clamp and mirror, the sRGB table, primaries to ACEScg |
+| `procedural.wgsl` | the ten procedural patterns, with the CPU's integer hashing |
+| `program.wgsl` | `HitCtx`, `run_program` over opcodes 0 to 24 (24 is the label projection), polynomial `atan2` and `acos` so projections do not depend on driver precision, `sanitize_inputs` |
| `lights.wgsl` | every lamp kind, emissive triangles, light choice |
| `catcher.wgsl` | the shadow catcher's sampler dimensions |
-| `bsdf_tables.wgsl`, `bsdf.wgsl` | the energy-table lookups and the layered surface BSDF |
-| `integrator.wgsl` | `path_sample`, the port of the CPU's path loop |
-| `kernel.wgsl` | the megakernel entry (about 3,400 lines once assembled) |
+| `bsdf_tables.wgsl`, `bsdf.wgsl` | the energy-table lookups and the layered surface BSDF, with the thin-film Fresnel (`bsdf_add_film`) |
+| `integrator.wgsl` | `path_sample`, the port of the CPU's path loop, with ray-cone footprints and the dispersion hero channel |
+| `kernel.wgsl` | the megakernel entry (about 4,350 lines once assembled for software traversal, 4,268 for ray queries) |
| `adaptive.wgsl` | the adaptive-sampling pass that retires and revives pixels |
| `plumbing.wgsl` | the first placeholder kernel, kept as a minimal smoke test |
@@ -143,12 +162,16 @@ Rules for kernel authors: never write an infinity, a NaN or the largest float as
## Specialisation and kernel cache
-The three override constants switch off the code for lamps, the shadow catcher and authored normals when a scene does not need it. Adaptive sampling is not a constant: the kernel skips retired pixels when the Frame's adaptive flag is set, so switching adaptive sampling on or off never compiles a kernel. The renderer keeps up to four compiled variants. `RendererOptions::features` asks for at least a set of features (`Features::NONE` means exactly the scene's own variant); by default the native renderer builds the scene's variant and the window uses the variant with everything on. A scene change uses the renderer's own variant or a kept one that covers the scene. Natively a missing variant is compiled when the scene changes; on WebAssembly, when no kept kernel covers the scene, the pass returns a shader error before any dispatch instead of drawing a wrong picture, `needs_specialise()` says so, and `specialise_async()` compiles the missing variant (it works on any target). The window does not call it yet. Where the driver offers a pipeline cache (Vulkan yes, OpenGL no) compiled kernels are kept on disk, keyed by adapter, driver, WGSL hash and constants.
+The four override constants switch off the code for lamps, the shadow catcher, authored normals and the material program interpreter (`USE_PROGRAMS`, on when some material record has `MAT_PROGRAM`) when a scene does not need it; the thin-film code has no constant and is in every kernel. Adaptive sampling is not a constant: the kernel skips retired pixels when the Frame's adaptive flag is set, so switching adaptive sampling on or off never compiles a kernel. The renderer keeps up to four compiled variants. `RendererOptions::features` asks for at least a set of features (`Features::NONE` means exactly the scene's own variant); by default the native renderer builds the scene's variant and the window uses the variant with everything on. A scene change uses the renderer's own variant or a kept one that covers the scene. Natively a missing variant is compiled when the scene changes; on WebAssembly, when no kept kernel covers the scene, the pass returns a shader error before any dispatch instead of drawing a wrong picture, `needs_specialise()` says so, and `specialise_async()` compiles the missing variant (it works on any target). The window does not call it yet. Where the driver offers a pipeline cache (Vulkan yes, OpenGL no) compiled kernels are kept on disk, keyed by adapter, driver, WGSL hash and constants.
## Render region
`GpuRenderer::set_region` takes a rectangle in output pixels (or none) and maps it through the resolution scale onto the film; with the Frame's region flag set, kernel invocations outside it return at once. Samples are kept when a region is set or cleared, the whole picture is still developed, and the statistics (samples, fewest, most, converged fraction) count only the region's pixels, so clearing a region lets adaptive sampling carry on over the rest of the film. The engine's `render.region` takes fractions of the image and keeps the region across device and preview-size changes; the CPU engine has no region pass yet and answers so in `region_note`. On lavapipe at 320x240 a region pass over a sixth of the image took 0.116 s against 1.137 s for the full film, and the pixels inside were bit-identical to a full-film render at the same samples.
+**Region resets after an edit.** A different thing from the render region: when a material edit changes only some parts, `GpuRenderer::update_region(snapshot, instances, pad)` applies the new snapshot without a reset and clears only the first-hit rectangle of those instances (padded by 6 pixels), keeping the samples everywhere else, as the CPU engine does; it answers none when only a full reset will do. The engine uses it for every Region-level change, `library.apply` and assigning a new material included. On the product template at 320 by 240, applying a gold preset to one band cleared 5,600 of 76,800 pixels on both engines, the same rectangle, and every changed pixel lay inside it.
+
+**Bent normals.** Like the CPU, the integrator bends a normal that a material program changed just enough that the mirror reflection stays 0.01 above the geometric horizon (`clamp_bent_normal`), so steep normal maps no longer leave black rims on polished metal.
+
## Traversal choice
`RendererOptions::traversal` is automatic, software or hardware, and the environment variable `FORMSHOT_GPU_TRAVERSAL` (software, hardware or auto) overrides it. Automatic picks ray queries when the device was opened with them, binds a third group with an acceleration structure, and the structures build. Hardware structures are one bottom-level structure per unique mesh, built straight from `tris`, and one top-level instance per placed instance with its world rows, its index as the custom index and its ray mask. After a closest hit the software path's watertight test is re-run on the committed triangle, so hit distances and barycentrics come out bit-identical to the software path. A transform or material change rebuilds only the top level; a changed mesh builds only its own bottom level. A missing feature, a failed build or a kernel that does not compile drops to the software traversal with a one-line reason; traversal never sends a job to the CPU. WebAssembly always uses the software traversal, since WebGPU offers no ray queries.
@@ -159,8 +182,8 @@ Before anything is uploaded, `Refusals::check` compares the scene with the adapt
| Kind | Codes | Effect |
| --- | --- | --- |
-| Limit | resolution, nodes, triangles, vertices, instances, materials, lights, frame_width, frame_size, bvh_depth, environment_size | the GPU cannot hold the job; it renders on the CPU |
-| Feature | adaptive_bands (adaptive sampling on a film larger than one binding) | the GPU picture would differ from the CPU's; the job renders on the CPU |
+| Limit | resolution, nodes, triangles, vertices, instances, materials, lights, frame_width, frame_size, bvh_depth, environment_size, texture_memory (the tables block with the textures would pass the largest storage binding; raised at upload or by `set_textures`, which keeps the old pixels) | the GPU cannot hold the job; it renders on the CPU |
+| Feature | adaptive_bands (adaptive sampling on a film larger than one binding); material_program (a material in use whose program fails its checks, needs more than 32 registers, uses an opcode outside `GPU_OPCODES` or a procedural outside `GPU_PROCEDURALS`, or reads a uv set past 4; such programs are not uploaded) | the GPU picture would differ from the CPU's; the job renders on the CPU |
The engine session in `fsh-commands` then applies a ladder, and every rung leaves a plain note in `render.status`, in the reply to `render.set_device` and in the command line's output:
diff --git a/docs/IMPORT.md b/docs/IMPORT.md
new file mode 100644
index 00000000..88ba0f2f
--- /dev/null
+++ b/docs/IMPORT.md
@@ -0,0 +1,106 @@
+# Import, CAD and family hand-offs
+
+This page describes how a model gets into a FormShot document: the formats read, the options, units and axes, background jobs, re-import, textures, STEP and IGES through FormCAD's kernel worker, and what the other Form apps hand over. The code is in `native/crates/fsh-io` (readers, clean-up, `family/`), `native/crates/fsh-cad`, `native/crates/fsh-commands/src/ext/` (`import.rs`, `import/`, `cad.rs`, `handoff.rs`), `backend/app/routers/` (`imports.py`, `cad.py`, `handoff.py`) and `frontend/src/ui/` (`import/`, `cad/`, `handoff/`). The rationale and what ran are in the HASHOUT logs beside that code.
+
+## Formats
+
+| Format | Extensions | Reader | Notes |
+| --- | --- | --- | --- |
+| glTF, GLB | .gltf, .glb | fsh-io | materials with texture slots, KHR_texture_transform and the material extensions listed below; tangents kept |
+| OBJ with MTL | .obj | fsh-io | `o` and `g` groups become nodes, one part per `usemtl`; polygons ear-clipped; MTL maps become slots |
+| STL | .stl | fsh-io | binary facet colours (VisCAM/SolidView and Materialise conventions) become vertex colours |
+| PLY | .ply | fsh-io | polygons ear-clipped; vertex colours |
+| 3MF | .3mf | fsh-io (roxmltree, own ZIP reader) | unit from the file, Z up, build items and components, base materials, colour groups, composites, texture groups, multiproperties (first layer) |
+| FBX | .fbx | fsh-io on ufbx, desktop engine only | the file's unit, Y up after conversion, Lambert, Phong and PBR materials, texture slots, embedded images; not in the browser engine |
+| STEP | .step, .stp | fsh-cad through FormCAD's kernel worker | assemblies, body colours, face colours read from the file, shared shapes |
+| IGES | .iges, .igs | fsh-cad through the worker | solid colours and names read from the file |
+
+Detection looks at content first (3MF a ZIP holding a `.model` part, FBX its binary magic or `FBXHeaderExtension`, STEP `ISO-10303-21;`, IGES an `S` in column 73), then the extension. Not read: 3MF slice, beam lattice, volumetric and boolean extensions; FBX NURBS, skins, blend shapes, cameras, lights and animation (reported as warnings); STEP PMI and layers.
+
+## Options
+
+`file.import {path, ...}` (and `import.start`, and `file.open` of a model) takes:
+
+| Option | Values | Default |
+| --- | --- | --- |
+| `name` | the name of the imported top node | the file's stem |
+| `units` | auto, mm, cm, m, in, ft | auto: declared by the file, else guessed |
+| `up_axis` | auto, y, z | auto: declared by the format |
+| `stand_on_floor` | stand the model on the ground | true |
+| `center` | move the footprint's centre to the origin | false |
+| `frame` | frame the camera on the result | when the scene had no parts |
+| `merge` | put everything under one group | false (several roots get a wrap group) |
+| `cad_quality` | draft, medium, high, ultra, or `{chord, angle}` | medium |
+| `options` | the older clean-up object (`unit`, `up_axis`, `centre`, `stand_on_floor`, ...) | read first; top-level names win |
+
+Calls written for earlier engines keep working and give the same documents, apart from the new source metadata. The window's import sheet remembers up axis, the switches and the CAD quality in the browser, and defaults units to the probed unit with a warning when it was guessed.
+
+## Units and axes
+
+Every reader's result goes through one clean-up pass: validate, weld, normals (area weighted, 30 degrees), MikkTSpace tangents where a mesh has uvs and normals but no tangents, repeated parts found (also rotated or mirrored copies, matched through the shared triangle list), units, up axis (one linear map, local transforms conjugated), then floor and centre on the root transforms only.
+
+A unit comes from the option, else the file (3MF always declares one; FBX gives its scale; glTF is metres; STEP and IGES read through the worker in millimetres), else a guess from the bounding-box diagonal: under 0.5 the file is taken as metres, under 50 as centimetres, else millimetres. The guess carries a confidence (0.5 at a threshold, rising to 0.95 one decade away) and candidate units that give a 5 mm to 20 m object. A guessed unit is reported (`unit_guessed`), and the sheet says so, because a 1.2 m model is guessed as centimetres.
+
+`import.probe {path}` answers what a file holds without changing the document: format, declared and guessed units, up axis, bounds in file units and in metres at the guessed unit, triangles, meshes, nodes, materials, textures, images in the file, texture slots and warnings. For STEP and IGES it reads the header (schema, writing system, declared unit, entity counts) and, when the worker is installed, opens the file without tessellating (bodies, groups, faces, colours); triangles and meshes are then null.
+
+## Where nodes came from
+
+Every imported node records its origin in its metadata: `source.path` (the absolute file) and `source.node` (its path inside the file, names joined by `/`). The import's top nodes also hold `source.options` (the geometry options with the resolved unit and up axis), so a re-read cannot flip a unit guess. Parts whose mesh keeps vertex colours carry `material.vertex_colours = multiply`; masked glTF materials put their cutoff in `material.alpha_cutoff`. [`FILE-FORMAT.md`](FILE-FORMAT.md) lists every key.
+
+## Jobs
+
+`file.import` imports at once. `import.start` runs the read and the clean-up on a worker thread and answers `{job}` at once; the document changes on the first engine call after the worker finishes, as one undo step and one journal command, and never while a history group is open (stage `waiting`). `import.status {job}` answers `{job, state, stage, fraction, path, seconds, result?, error?}` with state running, done, failed, cancelled or stale; without `job` it lists this engine's jobs. `import.cancel {job}` stops it (a CAD job kills the worker) and the document stays exactly as it was. Opening, creating, closing or recovering a document while a job runs cancels it and marks it stale. Jobs belong to their engine session and end with it.
+
+## Re-import
+
+`file.reimport {nodes?}` reads the source files of the given imported nodes again (every imported node when none is given), with the options stored on their top nodes. Parts match by `source.node`, then by a name unique on both sides, then by a shape unique on both sides, so a part renamed in the file keeps its material. Matched parts keep their transform and material (and every slot edit), take the file's name only if the person had not renamed them, and get the new mesh in place (their ids stay); parts new in the file arrive; parts gone from the file are hidden and marked `source.missing`, and come back when they return. CAD files are re-read at the quality their parts carry now. One undo step. A texture whose image changed in the source is not refreshed on matched parts. A missing source file is an error for that file only. A model uploaded from a browser is kept in `/.imports//` for this, and the service removes upload folders after 24 hours without changes; re-import of those parts then reports the source as missing.
+
+## Textures
+
+Readers turn each material's maps into texture slots ([`MATERIALS.md`](MATERIALS.md)), with uvs stored v up:
+
+- **glTF.** baseColorTexture to base_color (multiplied by the factor), metallicRoughness to specular_roughness (g) and base_metalness (b), normal (with its scale), emissive (times emissive_strength), alpha in BLEND mode to geometry_opacity (soft coverage), and in MASK mode a hard cutoff: a MASK material with an alpha texture gets a small graph driving geometry_opacity with `clamp((alpha * factor - cutoff + 1e-4) * 1e4, 0, 1)`, so coverage is 0 or 1 at the cutoff in both tracers (an untextured MASK material is simply 0 or 1), texCoord sets, KHR_texture_transform, sampler wrap and filters. Extensions read: clearcoat, transmission, ior, specular, sheen, volume, iridescence, dispersion, anisotropy (strength), emissive_strength. Occlusion and inputs without a slot (transmission, specular colour, sheen, clearcoat normal, thickness, iridescence) are recorded on the material only.
+- **MTL.** map_Kd, map_Ks, map_Ns (inverted), map_Pr, map_Pm, bump, norm, map_d, map_Ke and disp, with -o, -s, -clamp, -bm and -imfchan.
+- **3MF.** texture2d parts with their tile style and filter, as a base_color slot.
+- **FBX.** base colour, roughness or glossiness, metalness, normal, emission, specular, bump, displacement and opacity maps, UV sets by name, the texture transform and embedded content.
+
+The import then reads each image it can find (beside the model or inside it: GLB buffers, data URIs, 3MF parts, FBX content) and embeds PNG, JPEG, Radiance HDR and OpenEXR files in the project as `fshot:textures/.`, once per distinct content. Other formats (WebP, KTX2, DDS, GIF, BMP, TIFF) are skipped and their slots dropped; files above 256 MiB stay referenced by path; missing files and files outside the model's folder keep their reference and sample the slot's fallback. The reply's `textures` block lists what was embedded, referenced, missing and skipped. Both path tracers sample these textures; how they are loaded and filtered is in [`MATERIALS.md`](MATERIALS.md).
+
+## CAD: STEP and IGES
+
+STEP and IGES are opened by FormCAD's kernel worker (OpenCascade), a separate program FormShot starts and talks to in JSON lines; the engine never downloads anything.
+
+**Getting the worker.** `./formshot cad fetch` (or Download in Preferences > CAD Import, or the line under the import sheet's CAD row) downloads release `occt-8.0.1` from FormCAD's published binaries, checks a record pinned by SHA-256, the archive against `SHA256SUMS` and every unpacked file against the record, and installs it in `/formshot/workers/occt-8.0.1/` (`FORMSHOT_CACHE`, else `~/.cache`, `~/Library/Caches` or `%LOCALAPPDATA%`). `./formshot cad status` and `cad.status` say whether it is there. The engine looks in `FORMSHOT_CAD_WORKER` first, then beside the program, then in the cache. `FORMSHOT_CAD_RELEASE_URL` points the download at a mirror; `FORMSHOT_CAD_TIMEOUT` sets the per-request timeout (600 s by default) and `FORMSHOT_CAD_HELLO_TIMEOUT` how long a starting worker may take to answer (120 s by default).
+
+**Quality.** Chord is the largest distance between a triangle and the surface, as a fraction of the model's bounding-box diagonal; angle is in degrees.
+
+| Preset | Chord | Angle |
+| --- | --- | --- |
+| draft | 0.002 | 30 |
+| medium | 0.0005 | 20 |
+| high | 0.00015 | 12 |
+| ultra | 0.00005 | 6 |
+| custom `{chord, angle}` | above 0, at most 0.1 | 1 to 90 |
+
+**What arrives.** Assembly groups and one part per body, in metres, Z up converted like any other file; one material per colour; bodies that are the same shape share one mesh. The worker reports body colours for STEP; FormShot reads STEP face colours and IGES solid colours and names from the file itself and applies them when they can be matched to the bodies, with a warning otherwise. Parts carry `source.cad`, `cad.mesh`, `cad.quality`, `cad.unit` and `cad.up`. The file is kept in the project under `sources/` (up to 64 MiB) and in the crash journal; a save writes only the sources some part still names. `cad.parts {nodes?}` lists the CAD parts with their source, quality, unit and up axis.
+
+**Tessellating again.** `scene.retessellate {nodes?, quality}` (Scene > Re-tessellate CAD Parts) rebuilds the meshes of CAD parts from the kept source at another quality, as one undo step; each part keeps its id, name, placement, material, visibility and selection, and shared meshes stay shared. Locked parts are skipped. It runs while you wait (no progress, no cancel).
+
+**Limits.** The worker sends no progress inside the open or one body's tessellation, no face colours, no IGES colours and no instance matrices; FormShot works around the colours and derives sharing by matching tessellations. Only tested on Linux x86_64.
+
+## Hand-offs from the other Form apps
+
+| App | What it writes | How FormShot takes it |
+| --- | --- | --- |
+| FormSculpt | GoF: `.glb`, `.obj` or `.fbx` in its watched folder with a `gof.json` manifest | the GoF folder is watched; entries for `any` (or a future `formshot` target) are offered |
+| FormFabric | GoF entries from `formfabric.gof.send`; glTF, GLB and OBJ exports | as FormSculpt; models through the usual readers |
+| FormSurface | `/exports//_