@base2datadesign/viewer-kit 0.2.6 → 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;
|
|
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"}
|
|
@@ -427,6 +427,8 @@ const buildRendererConfig = (preset) => ({
|
|
|
427
427
|
type: "pcfsoft",
|
|
428
428
|
},
|
|
429
429
|
});
|
|
430
|
+
const DEFAULT_AO_COLOR = "#000000";
|
|
431
|
+
const DEFAULT_AO_QUALITY = "high";
|
|
430
432
|
const buildPostFxConfig = (preset) => ({
|
|
431
433
|
ao: preset.config.ao
|
|
432
434
|
? {
|
|
@@ -435,6 +437,8 @@ const buildPostFxConfig = (preset) => ({
|
|
|
435
437
|
radius: preset.config.ao.radius,
|
|
436
438
|
distanceFalloff: preset.config.ao.distanceFalloff,
|
|
437
439
|
halfRes: preset.config.ao.halfRes,
|
|
440
|
+
quality: DEFAULT_AO_QUALITY,
|
|
441
|
+
color: DEFAULT_AO_COLOR,
|
|
438
442
|
}
|
|
439
443
|
: { enabled: false },
|
|
440
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
|
|
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"),
|