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": {
"@simonwep/pickr": "1.8.2",
"draco3d": "1.5.6",
"fflate": "0.7.4",
"fflate": "0.8.0",
"occt-import-js": "0.0.18",
"rhino3dm": "8.0.0",
"three": "0.152.2",
"rhino3dm": "7.15.0",
"three": "0.153.0",
"web-ifc": "0.0.39"
},
"eslintConfig": {

View File

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

View File

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