three-base 2.0.114 → 2.0.115

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.
Files changed (2) hide show
  1. package/ThreeBase.js +1 -1
  2. package/package.json +1 -1
package/ThreeBase.js CHANGED
@@ -193,7 +193,7 @@ export default class ThreeBase extends EventDispatcher {
193
193
  this.renderer.setPixelRatio(window.devicePixelRatio);
194
194
  this.renderer.setSize(width, height);
195
195
  // 设置帧缓存区的尺寸
196
- this.baseRenderTarget.setSize(width * window.devicePixelRatio, height * window.devicePixelRatio);
196
+ this.baseRenderTarget.setSize(width * Math.max(2, window.devicePixelRatio), height * Math.max(2, window.devicePixelRatio));
197
197
  // 设置深度纹理的尺寸
198
198
  this.baseDepthTexture.image.width = width * window.devicePixelRatio;
199
199
  this.baseDepthTexture.image.height = height * window.devicePixelRatio;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.114",
3
+ "version": "2.0.115",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"