We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3234d5e commit 6ed62baCopy full SHA for 6ed62ba
web-ifc-three/src/IFC/components/IFCParser.ts
@@ -215,7 +215,10 @@ export class IFCParser implements ParserAPI {
215
return;
216
}
217
218
- const col = new Color(color.x, color.y, color.z);
+ // Assume RGB components are in sRGB-Rec709-D65 colorspace, and specify
219
+ // this so three.js can convert if THREE.ColorManagement APIs are enabled.
220
+ // TODO: https://github.com/three-types/three-ts-types/issues/342
221
+ const col = new Color().setRGB(color.x, color.y, color.z, 'srgb');
222
const material = new MeshLambertMaterial({ color: col, side: DoubleSide });
223
material.transparent = color.w !== 1;
224
if (material.transparent) material.opacity = color.w;
0 commit comments