mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
7322263a5e
roughnessFactor was computed as 1/specularity. An IfcSpecularExponent of 0 produced infinity, which nlohmann::json serialises as null and makes the glTF invalid; exponents below 1 produced values above 1, which glTF also forbids. Map exponents <= 1 to full roughness and keep 1/exponent above that, so the factor always lands in [0, 1]. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>