fix: 可视化图层DPR

This commit is contained in:
thinkinggis 2021-01-13 17:39:12 +08:00
parent 63fe30c77e
commit b221879769
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export default class ShaderUniformPlugin implements ILayerPlugin {
[CoordinateUniform.PixelsPerMeter]: this.coordinateSystemService.getPixelsPerMeter(),
// 其他参数例如视口大小、DPR 等
u_ViewportSize: [width, height],
u_DevicePixelRatio: DOM.DPR,
u_DevicePixelRatio: window.devicePixelRatio,
u_ModelMatrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1],
u_PickingBuffer: layer.getLayerConfig().pickingBuffer || 0,
}),