@kimap/indoor-positioning-sdk-vue2 3.9.5 → 3.9.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.
- package/package.json +1 -1
- package/src/KimapCore.browser.js +7 -5
- package/src/KimapCore.js +5 -5
package/package.json
CHANGED
package/src/KimapCore.browser.js
CHANGED
|
@@ -340,17 +340,19 @@
|
|
|
340
340
|
this.renderer.shadowMap.enabled = true;
|
|
341
341
|
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
|
342
342
|
|
|
343
|
-
// 设置输出色彩空间为sRGB
|
|
343
|
+
// 设置输出色彩空间为sRGB
|
|
344
344
|
this.renderer.outputColorSpace = THREE.SRGBColorSpace;
|
|
345
345
|
|
|
346
|
-
//
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
// 色调映射设置(优化颜色显示)
|
|
347
|
+
this.renderer.toneMapping = THREE.CineonToneMapping; // 3 = Cineon
|
|
348
|
+
this.renderer.toneMappingExposure = 1.0;
|
|
349
349
|
|
|
350
350
|
console.log('🖼️ 渲染器配置:', {
|
|
351
351
|
outputColorSpace: this.renderer.outputColorSpace,
|
|
352
352
|
shadowMapEnabled: this.renderer.shadowMap.enabled,
|
|
353
|
-
shadowMapType: this.renderer.shadowMap.type
|
|
353
|
+
shadowMapType: this.renderer.shadowMap.type,
|
|
354
|
+
toneMapping: this.renderer.toneMapping,
|
|
355
|
+
toneMappingExposure: this.renderer.toneMappingExposure
|
|
354
356
|
});
|
|
355
357
|
|
|
356
358
|
this.container.appendChild(this.renderer.domElement);
|
package/src/KimapCore.js
CHANGED
|
@@ -370,7 +370,7 @@ SceneCore.prototype.setCameraPosition = function() {
|
|
|
370
370
|
};
|
|
371
371
|
|
|
372
372
|
SceneCore.prototype.initRenderer = function() {
|
|
373
|
-
this.renderer = new THREE.WebGLRenderer({ antialias: true
|
|
373
|
+
this.renderer = new THREE.WebGLRenderer({ antialias: true });
|
|
374
374
|
this.renderer.setSize(this.container.clientWidth, this.container.clientHeight);
|
|
375
375
|
this.renderer.setPixelRatio(window.devicePixelRatio);
|
|
376
376
|
|
|
@@ -378,12 +378,12 @@ SceneCore.prototype.initRenderer = function() {
|
|
|
378
378
|
this.renderer.shadowMap.enabled = true;
|
|
379
379
|
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
|
380
380
|
|
|
381
|
-
// 设置输出色彩空间为sRGB
|
|
381
|
+
// 设置输出色彩空间为sRGB
|
|
382
382
|
this.renderer.outputColorSpace = THREE.SRGBColorSpace;
|
|
383
383
|
|
|
384
|
-
//
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
// 色调映射设置(优化颜色显示)
|
|
385
|
+
this.renderer.toneMapping = THREE.CineonToneMapping; // 3 = Cineon
|
|
386
|
+
this.renderer.toneMappingExposure = 1.0;
|
|
387
387
|
|
|
388
388
|
this.container.appendChild(this.renderer.domElement);
|
|
389
389
|
};
|