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.
- package/ThreeBase.js +1 -1
- 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;
|