Differences
This shows you the differences between two versions of the page.
| |
| ig:gfx:shading [2025/10/29 11:50] – created ig_ii | ig:gfx:shading [2025/10/29 11:51] (current) – ig_ii |
|---|
| |
| * **''shading.mode''** (string): | * **''shading.mode''** (string): |
| **Type:** string **Enum:** {"auto","flat","smooth"} **Default:** "auto" | * **Type:** string |
| | * **Enum:** {"auto","flat","smooth"} |
| | * **Default:** "auto" |
| * **"auto"** — The processor chooses flat vs smooth per-edge based on face dihedral (angle between adjacent normal vectors). Recommended default for general models. | * **"auto"** — The processor chooses flat vs smooth per-edge based on face dihedral (angle between adjacent normal vectors). Recommended default for general models. |
| * **"flat"** — Compute flat normals per face (no smoothing). Use for faceted, mechanical or intentionally sharp geometry. This is the default parameter because it always produces a mathematically correct mesh. | * **"flat"** — Compute flat normals per face (no smoothing). Use for faceted, mechanical or intentionally sharp geometry. This is the default parameter because it always produces a mathematically correct mesh. |
| |
| * **''shading.angle''** (number): | * **''shading.angle''** (number): |
| **Type:** number **Unit:** degrees **Default:** 30 | * **Type:** number |
| Angular threshold used only when **mode** is **"auto"** (or when smoothing is computed): edges with dihedral angle less than **shading.angle** are smoothed; edges with larger angles remain hard. Typical range: 10–60° up to 90°. | * **Unit:** degrees |
| | * **Default:** 30 |
| | * Angular threshold used only when **mode** is **"auto"** (or when smoothing is computed): edges with dihedral angle less than **shading.angle** are smoothed; edges with larger angles remain hard. Typical range: 10–60° up to 90°. |
| |
| **User notes:** | **User notes:** |