mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-23 15:52:49 +08:00
fix: 解决了三维地球不能被截图的bug
This commit is contained in:
parent
d2ad32e08e
commit
39e735b29c
@ -31,7 +31,8 @@ export class Basic {
|
||||
this.renderer = new THREE.WebGLRenderer({
|
||||
// canvas: this.dom,
|
||||
alpha: true, // 透明
|
||||
antialias: true // 抗锯齿
|
||||
antialias: true, // 抗锯齿
|
||||
preserveDrawingBuffer: true
|
||||
})
|
||||
this.renderer.setPixelRatio(window.devicePixelRatio) // 设置屏幕像素比
|
||||
this.renderer.setSize(window.innerWidth, window.innerHeight) // 设置渲染器宽高
|
||||
|
Loading…
Reference in New Issue
Block a user