From ab1b0ce6022176739da9f24ff448462f4c1e5691 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Tue, 20 Apr 2021 20:05:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=82=B9=E5=9B=BE=E5=B1=82=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/layers/src/point/models/fill.ts | 2 +- packages/layers/src/point/shaders/fill_vert.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/layers/src/point/models/fill.ts b/packages/layers/src/point/models/fill.ts index cd47da65f7..3fa71d2493 100644 --- a/packages/layers/src/point/models/fill.ts +++ b/packages/layers/src/point/models/fill.ts @@ -67,7 +67,7 @@ export default class FillModel extends BaseModel { vertexShader: pointFillVert, fragmentShader: pointFillFrag, triangulation: PointFillTriangulation, - depth: { enable: true }, + depth: { enable: false }, blend: this.getBlend(), }), ]; diff --git a/packages/layers/src/point/shaders/fill_vert.glsl b/packages/layers/src/point/shaders/fill_vert.glsl index 4ecb2c2d4c..b41300a9a5 100644 --- a/packages/layers/src/point/shaders/fill_vert.glsl +++ b/packages/layers/src/point/shaders/fill_vert.glsl @@ -43,6 +43,6 @@ void main() { setPickingColor(a_PickingColor); - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); }