@base2datadesign/viewer-kit 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"sciencePresets.d.ts","sourceRoot":"","sources":["../../src/presets/sciencePresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAOd,MAAM,iBAAiB,CAAC;AA4fzB,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,kBAA6B,CAAC;AAEpE,wBAAgB,kBAAkB,IAAI,aAAa,CA6BlD;AAGD,eAAO,MAAM,mBAAmB,2BAAqB,CAAC;AAEtD,eAAO,MAAM,eAAe,eAAuB,CAAC"}
1
+ {"version":3,"file":"sciencePresets.d.ts","sourceRoot":"","sources":["../../src/presets/sciencePresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAOd,MAAM,iBAAiB,CAAC;AAkgBzB,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,kBAA6B,CAAC;AAEpE,wBAAgB,kBAAkB,IAAI,aAAa,CA6BlD;AAGD,eAAO,MAAM,mBAAmB,2BAAqB,CAAC;AAEtD,eAAO,MAAM,eAAe,eAAuB,CAAC"}
@@ -420,12 +420,15 @@ const buildRendererConfig = (preset) => ({
420
420
  toneMapping: "neutral",
421
421
  toneMappingExposure: preset.config.toneMappingExposure,
422
422
  outputColorSpace: "srgb",
423
+ maxPixelRatio: 1.75,
423
424
  antialias: true,
424
425
  shadowMap: {
425
426
  enabled: preset.config.shadows,
426
427
  type: "pcfsoft",
427
428
  },
428
429
  });
430
+ const DEFAULT_AO_COLOR = "#000000";
431
+ const DEFAULT_AO_QUALITY = "high";
429
432
  const buildPostFxConfig = (preset) => ({
430
433
  ao: preset.config.ao
431
434
  ? {
@@ -434,6 +437,8 @@ const buildPostFxConfig = (preset) => ({
434
437
  radius: preset.config.ao.radius,
435
438
  distanceFalloff: preset.config.ao.distanceFalloff,
436
439
  halfRes: preset.config.ao.halfRes,
440
+ quality: DEFAULT_AO_QUALITY,
441
+ color: DEFAULT_AO_COLOR,
437
442
  }
438
443
  : { enabled: false },
439
444
  });
@@ -218,7 +218,7 @@ export class EnvironmentSystem {
218
218
  const token = ++this.loadToken;
219
219
  const backgroundEnabled = cube.showBackground !== false;
220
220
  const lightingEnabled = cube.showLighting !== false;
221
- const usePmrem = cube.usePmrem !== false;
221
+ const usePmrem = cube.usePmrem ?? false;
222
222
  const faces = await Promise.all([
223
223
  this.resolveAsset(cube.px, "cubeface"),
224
224
  this.resolveAsset(cube.nx, "cubeface"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base2datadesign/viewer-kit",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.js",