Update libraries.

This commit is contained in:
kovacsv 2023-06-02 22:47:39 +02:00
parent f96f09502e
commit 67ee073dfd
6 changed files with 332 additions and 9048 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

643
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -76,10 +76,10 @@
"dependencies": { "dependencies": {
"@simonwep/pickr": "1.8.2", "@simonwep/pickr": "1.8.2",
"draco3d": "1.5.6", "draco3d": "1.5.6",
"fflate": "0.7.4", "fflate": "0.8.0",
"occt-import-js": "0.0.18", "occt-import-js": "0.0.18",
"rhino3dm": "8.0.0", "rhino3dm": "7.15.0",
"three": "0.152.2", "three": "0.153.0",
"web-ifc": "0.0.39" "web-ifc": "0.0.39"
}, },
"eslintConfig": { "eslintConfig": {

View File

@ -340,6 +340,7 @@ export class ImporterThreeWrl extends ImporterThreeBase
constructor () constructor ()
{ {
super (); super ();
this.colorConverter = new ThreeLinearToSRGBColorConverter ();
} }
CanImportExtension (extension) CanImportExtension (extension)

View File

@ -87,7 +87,8 @@ export class ShadingModel
SetEnvironmentMapSettings (environmentSettings, onLoaded) SetEnvironmentMapSettings (environmentSettings, onLoaded)
{ {
let loader = new THREE.CubeTextureLoader (); let loader = new THREE.CubeTextureLoader ();
this.environment = loader.load (environmentSettings.textureNames, () => { this.environment = loader.load (environmentSettings.textureNames, (texture) => {
texture.colorSpace = THREE.LinearSRGBColorSpace;
onLoaded (); onLoaded ();
}); });
this.environmentSettings = environmentSettings; this.environmentSettings = environmentSettings;